Virtual Happy Hour is canceled this month (March) due to Good Friday.
Try our conversational search powered by Generative AI!
AI OnAI Off
Virtual Happy Hour is canceled this month (March) due to Good Friday.
EPiServer.Commerce 11.0.0
EPiServer.Commerce 11.4.0
Oct 03, 2017
Oct 19, 2018
Core
Closed, Fixed and tested
When storing numberic values in serializable carts, it might throw exception later, on load.
Test to prove:
public class When_saving_a_serializable_cart : IntegrationCartTestBase { private static decimal _loaded; Establish context = () => { EnableSerializedCarts(); var cart = OrderRepository.Create<ICart>(Guid.Empty, "Default"); cart.GetFirstForm().Properties["Test"] = (decimal)1.23; OrderRepository.Save(cart); cart = OrderRepository.Load<ICart>(cart.OrderLink.OrderGroupId); _loaded = (decimal)cart.GetFirstForm().Properties["Test"]; // BAM }; It Should_serialize_correctly = () => _loaded.ShouldEqual(1.23m); }