public static void Execute(this CustomerState state, ModifyCustomerCommand cmd) { if (state.Customers.All(c => c.Id != cmd.Id)) { return; } state.Store.StoreEvent(new CustomerModifiedEvent(cmd.Id, cmd.NewName)); }
public void Handle(ModifyCustomerCommand command) { throw new NotImplementedException("ToDo"); }