コード例 #1
0
 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));
 }
コード例 #2
0
 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
     });
 }
コード例 #3
0
 internal void ApplyEvent(InventoryWineView view, FirstBottleOfWineAdded eevent)
 {
     view.Apply(eevent);
 }