示例#1
0
 public static IEnumerable <IEvent> Handle(this Order order, CompletePacking command)
 {
     if (order.Packed && order.Payed)
     {
         yield return(new GoodsShipped());
     }
 }
示例#2
0
 public static IEnumerable <IEvent> Handle(this Order order, CompletePacking command)
 => new[] { new PackingComplete() };