public void When(AccountStatusChanged @event) { var accountStatusLookup = repository.Get<AccountStatusLookup>((int)@event.Status.Status); var accountStatusHistoryView = new AccountStatusHistoryView { AccountNumber = @event.AccountNumber.Id, AccountStatus = accountStatusLookup, ChangedDate = DateTime.Now }; repository.Add(accountStatusHistoryView); }
public void When(AccountStatusChanged @event) { var clientView = FetchClientView(@event.ClientId); var accountStatusLookup = repository.Get<AccountStatusLookup>((int)@event.Status.Status); clientView.AccountStatus = accountStatusLookup; }
public void When(AccountStatusChanged @event) { var account = FetchModel(@event.AccountNumber); account.AccountStatusId = (int)@event.Status.Status; Logger.Verbose(@event.ToString()); }
void IHandleAccountStateTransitions.When(AccountStatusChanged @event) { accountStatus = @event.Status; }