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