public void TestTwoAccount()
 {
     Customer oscar = new Customer("Oscar")
          .OpenAccount(new Account(Account.SAVINGS));
     oscar.OpenAccount(new Account(Account.CHECKING));
     Assert.AreEqual(2, oscar.GetNumberOfAccounts());
 }
Example #2
0
 public void TestTwoAccount()
 {
     Customer oscar = new Customer("Oscar")
          .OpenAccount(new SavingsAccount());
     oscar.OpenAccount(new CheckingAccount());
     Assert.AreEqual(2, oscar.GetNumberOfAccounts());
 }
 public void TestOneAccount()
 {
     Customer oscar = new Customer("Oscar").OpenAccount(new Account(Account.SAVINGS));
     Assert.AreEqual(1, oscar.GetNumberOfAccounts());
 }