Beispiel #1
0
        public void savings_account()
        {
            Bank bank = new Bank();
            Account checkingAccount = new Account(Account.SAVINGS);
            bank.addCustomer(new Customer("Steve").openAccount(checkingAccount));

            checkingAccount.deposit(1500.0);

            Assert.AreEqual(2.0, bank.totalInterestPaid(), DOUBLE_DELTA);
        }
Beispiel #2
0
        public void maxi_savings_account()
        {
            Bank    bank            = new Bank();
            Account checkingAccount = new Account(Account.MAXI_SAVINGS);

            bank.addCustomer(new Customer("Steve").openAccount(checkingAccount));

            checkingAccount.deposit(3000.0);

            Assert.AreEqual(170.0, bank.totalInterestPaid(), DOUBLE_DELTA);
        }
Beispiel #3
0
        public void checkingAccount()
        {
            Bank bank = new Bank();
            Account checkingAccount = new Account(Account.CHECKING);
            Customer Steve = new Customer("Steve").openAccount(checkingAccount);
            bank.addCustomer(Steve);

            checkingAccount.deposit(100.0);

            Assert.AreEqual(0.1, bank.totalInterestPaid(), DOUBLE_DELTA);
        }
Beispiel #4
0
        public void checkingAccount()
        {
            Bank     bank            = new Bank();
            Account  checkingAccount = new Account(Account.CHECKING);
            Customer Steve           = new Customer("Steve").openAccount(checkingAccount);

            bank.addCustomer(Steve);

            checkingAccount.deposit(100.0);

            Assert.AreEqual(0.1, bank.totalInterestPaid(), DOUBLE_DELTA);
        }