public AccountStatusChanged(AccountNumber accountNumber, AccountStatus status)
        {
            Mandate.ParameterNotNull(accountNumber, "accountNumber");
            Mandate.ParameterNotDefaut(status, "status");

            Status = status;
            AccountNumber = accountNumber;
        }
        public AccountStatusChanged(AccountNumber accountNumber, ClientId clientId, AccountStatus status)
        {
            Mandate.ParameterNotNull(accountNumber, "accountNumber");
            Mandate.ParameterNotNull(clientId, "clientId");
            Mandate.ParameterNotDefaut(status, "status");

            Status = status;
            AccountNumber = accountNumber;
            ClientId = clientId;
        }
 public AccountStatusChanged(AccountNumber accountNumber, AccountStatus status)
 {
     Status = status;
     AccountNumber = accountNumber;
 }
Example #4
0
 void IHandleAccountStateTransitions.When(AccountStatusChanged @event)
 {
     accountStatus = @event.Status;
 }
Example #5
0
 void IAccountState.When(AccountStatusChanged @event)
 {
     accountStatus = @event.Status;
 }