public void Update(ExistingProductUpdatedEvent @event) { var item = @event.Item; Description = item.Description; Price = new ProductPrice(item.GbpPrice, Currency.Gbp); Quantity = @event.Quantity; }
internal void Apply(ExistingProductUpdatedEvent @event) { var productBasketItem = FindProduct(@event.ItemId); productBasketItem?.Update(@event); }