Inheritance: IDomainEvent
Ejemplo n.º 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;
        }
Ejemplo n.º 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());
        }
Ejemplo n.º 3
0
 public void When(AccountOpened @event)
 {
     var clientModel = FetchModel(@event.ClientId);
     clientModel.AccountNumber = @event.AccountNumber.Id;
     Logger.Verbose(@event.ToString());
 }
Ejemplo n.º 4
0
 void IHandleAccountStateTransitions.When(AccountOpened @event)
 {
     Identity = @event.AccountNumber;
     clientId = @event.ClientId;
 }