internal void ApplyEvent(InventoryWinesView view, BottleOfWineAdded eevent) { var viewWine = view.Wines.Single(w => w.Id == eevent.Id); viewWine.Count++; viewWine.Price = Math.Max(viewWine.Price, eevent.Price); }
internal void Apply(BottleOfWineAdded eevent) { Bottles.Add(new Bottle(eevent.PurchaseDate, eevent.Price, eevent.Vintage)); }
internal void ApplyEvent(InventoryWineView view, BottleOfWineAdded eevent) { view.Apply(eevent); }