Exemplo n.º 1
0
 private AccountState ApplyEvent(AccountStatusChanged occurred)
 {
     return(new AccountState(
                AccountNumber,
                CurrentBalance,
                occurred.AccountStatus,
                Obligations,
                SimulatedFields,
                AuditLog.Add(new StateLog("AccountStatusChanged", occurred.Message, occurred.UniqueGuid(),
                                          occurred.OccurredOn())),
                OpeningBalance,
                Inventroy,
                UserName,
                LastPaymentAmount,
                LastPaymentDate));
 }
Exemplo n.º 2
0
 public AccountState Event(AccountStatusChanged occurred)
 {
     return(new AccountState(this.AccountNumber, this.CurrentBalance,
                             occurred.AccountStatus, this.Obligations,
                             SimulatedFields,
                             AuditLog.Add(new StateLog("AccountStatusChanged", occurred.UniqueGuid(), occurred.OccurredOn()))));
 }