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