상속: IDomainEvent
예제 #1
0
        public void When(AccountOpened @event)
        {
            var clientView = FetchClientView(@event.ClientId);
            var accountStatusLookup = repository.Get<AccountStatusLookup>((int)AccountStatusType.Active);

            clientView.AccountNumber = @event.AccountNumber.Id;
            clientView.AccountStatus = accountStatusLookup;
            clientView.AccountRecency = 0;
        }
예제 #2
0
        public void When(AccountOpened @event)
        {
            var accountModel = new AccountModel
            {
                AccountNumber = @event.AccountNumber.Id,
                ClientId = @event.ClientId.Id,
                AccountStatusId = (int)AccountStatusType.Active,
                Recency = Recency.UpToDate().Value
            };

            repository.Add(accountModel);
            Logger.Verbose(@event.ToString());
        }
예제 #3
0
 public void When(AccountOpened @event)
 {
     var clientModel = FetchModel(@event.ClientId);
     clientModel.AccountNumber = @event.AccountNumber.Id;
     Logger.Verbose(@event.ToString());
 }
예제 #4
0
 void IHandleAccountStateTransitions.When(AccountOpened @event)
 {
     Identity = @event.AccountNumber;
     clientId = @event.ClientId;
 }