Ejemplo n.º 1
0
        public void Update(ExistingProductUpdatedEvent @event)
        {
            var item = @event.Item;

            Description = item.Description;
            Price       = new ProductPrice(item.GbpPrice, Currency.Gbp);
            Quantity    = @event.Quantity;
        }
Ejemplo n.º 2
0
        internal void Apply(ExistingProductUpdatedEvent @event)
        {
            var productBasketItem = FindProduct(@event.ItemId);

            productBasketItem?.Update(@event);
        }