コード例 #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);
 }