コード例 #1
0
 public void ABankAccountHistoricalDataIsCorrectlyCreated()
 {
     ClientAccountCodeCCC ccc = new ClientAccountCodeCCC("12345678061234567890");
     BankAccount bankAccount = new BankAccount(ccc);
     DateTime activationDate = new DateTime(2013, 11, 11);
     DateTime deactivationDate = new DateTime(2013, 11, 30);
     BankAccountHistoricalData ephemeralBankAcount = new BankAccountHistoricalData(bankAccount, activationDate, deactivationDate);
     Assert.AreEqual(bankAccount, ephemeralBankAcount.BankAccount);
     Assert.AreEqual(activationDate, ephemeralBankAcount.AccountActivationDate);
     Assert.AreEqual(deactivationDate, ephemeralBankAcount.AccountDeactivationDate);
 }
コード例 #2
0
 private void AddCurrentAccountToHistorical(DateTime changingDate)
 {
     BankAccountHistoricalData oldBankAccount = new BankAccountHistoricalData(this.bankAccount, this.bankAccountActivationDate, changingDate);
     bankAccountHistory.Add(changingDate, oldBankAccount);
 }