Пример #1
0
 public void Apply(BeveragesOrdered @event) =>
 OutstandingBeverages.AddRange(@event.Beverages);
Пример #2
0
 public void ApplyEvent(BeveragesOrdered @event)
 {
     OrderedBeverages.AddRange(@event.Beverages);
     OutstandingBeverages.AddRange(@event.Beverages);
 }