public void Apply(FirstBottleOfWineAdded eevent) { Id = eevent.Id; Producer = eevent.Producer; Name = eevent.Name; Fruit = eevent.Fruit; Country = eevent.Country; ProductType = eevent.ProductType; Bottles = new List <Bottle>(); Bottles.Add(new Bottle(eevent.PurchaseDate, eevent.Price, eevent.Vintage)); }
internal void ApplyEvent(InventoryWinesView view, FirstBottleOfWineAdded eevent) { view.Wines.Add(new ViewWine { Id = eevent.Id, Producer = eevent.Producer, Name = eevent.Name, Fruit = eevent.Fruit, Country = eevent.Country, ProductType = eevent.ProductType, Vintage = eevent.Vintage, Price = eevent.Price, Count = 1 }); }
internal void ApplyEvent(InventoryWineView view, FirstBottleOfWineAdded eevent) { view.Apply(eevent); }