public void When(ClientPassedAway @event) { if (@event.AccountNumber == null) { return; } var account = accountRepository.Get(@event.AccountNumber.Id); account.Cancel(); }
void IHandleClientStateTransitions.When(ClientPassedAway @event) { isDeceased = true; }
public void When(ClientPassedAway @event) { var clientModel = FetchModel(@event.ClientId); clientModel.IsDeceased = true; }
void IClientState.When(ClientPassedAway @event) { isDeceased = true; }