상속: IDomainEvent
        public void When(ClientPassedAway @event)
        {
            if (@event.AccountNumber == null)
            {
                return;
            }

            var account = accountRepository.Get(@event.AccountNumber.Id);
            account.Cancel();
        }
예제 #2
0
 void IHandleClientStateTransitions.When(ClientPassedAway @event)
 {
     isDeceased = true;
 }
예제 #3
0
 public void When(ClientPassedAway @event)
 {
     var clientModel = FetchModel(@event.ClientId);
     clientModel.IsDeceased = true;
 }
예제 #4
0
 void IClientState.When(ClientPassedAway @event)
 {
     isDeceased = true;
 }