Example #1
0
        public void TestPersonInterest()
        {
            CreditCardInterestRate.CreditCards[] cards  = { discover, visa, masterCard };
            CreditCardInterestRate.Wallet        wallet = new CreditCardInterestRate.Wallet(cards);
            CreditCardInterestRate.Wallet[]      walArr = { wallet };

            CreditCardInterestRate.Persons person = new CreditCardInterestRate.Persons(walArr);

            Assert.AreEqual(16.0, person.getPersonInterest());
        }
Example #2
0
        public void TestPersonInterest()
        {
            CreditCardInterestRate.CreditCards[] cardArr1 = { discover, visa };
            CreditCardInterestRate.CreditCards[] cardArr2 = { masterCard };

            CreditCardInterestRate.Wallet   wallet1 = new CreditCardInterestRate.Wallet(cardArr1);
            CreditCardInterestRate.Wallet   wallet2 = new CreditCardInterestRate.Wallet(cardArr2);
            CreditCardInterestRate.Wallet[] walArr  = { wallet1, wallet2 };

            CreditCardInterestRate.Persons person = new CreditCardInterestRate.Persons(walArr);

            Assert.AreEqual(16, person.getPersonInterest());
        }
Example #3
0
 public void TestWallet_2_Interest()
 {
     CreditCardInterestRate.CreditCards[] cardArr = { masterCard };
     CreditCardInterestRate.Wallet        wallet  = new CreditCardInterestRate.Wallet(cardArr);
     Assert.AreEqual(5.0, wallet.getWalletInterest());
 }
Example #4
0
 public void TestWallet_1_Interest()
 {
     CreditCardInterestRate.CreditCards[] cardArr = { discover, visa };
     CreditCardInterestRate.Wallet        wallet  = new CreditCardInterestRate.Wallet(cardArr);
     Assert.AreEqual(11.0, wallet.getWalletInterest());
 }