Esempio n. 1
0
        private void IsCDListedInCustomerProduct(double CDCost)
        {
            AccountSummary[] accounts = customerSummary.GetAccountSummary();
            Assert.AreEqual <int>(3, accounts.Length, "There should be 3 accounts listed");

            Assert.AreEqual <string>("Checkings", accounts[0].AccountType,
                                     "First Account should be Checking");
            Assert.AreEqual <string>("12332603", accounts[0].AccountNumber,
                                     "Account Number is not correct");

            if (accounts[1].AccountType.Equals("Savings"))
            {
                Assert.AreEqual <string>("Savings", accounts[1].AccountType,
                                         "Second Account should be Savings");
                Assert.AreEqual <string>("34522603", accounts[1].AccountNumber,
                                         "Account Number is not correct");

                Assert.AreEqual <string>("CD", accounts[2].AccountType,
                                         "Third Account should be CD");
            }
            else
            {
                Assert.AreEqual <string>("Savings", accounts[2].AccountType,
                                         "Third Account should be Savings");
                Assert.AreEqual <string>("34522603", accounts[2].AccountNumber,
                                         "Account Number is not correct");

                Assert.AreEqual <string>("CD", accounts[1].AccountType,
                                         "Second Account should be CD");
            }
        }
Esempio n. 2
0
        private void CheckAccountSummary()
        {
            AccountSummary[] accounts = customerSummary.GetAccountSummary();
            Assert.AreEqual <int>(2, accounts.Length, "There should be 2 accounts listed");
            Assert.AreEqual <string>("Checkings", accounts[0].AccountType,
                                     "First Account should be Checking");
            Assert.AreEqual <string>("12332603", accounts[0].AccountNumber,
                                     "Account Number is not correct");
            Assert.AreEqual <double>(5500.34, accounts[0].Balance,
                                     "Balance amount is not correct");

            Assert.AreEqual <string>("Savings", accounts[1].AccountType,
                                     "Second Account should be Savings");
            Assert.AreEqual <string>("34522603", accounts[1].AccountNumber,
                                     "Account Number is not correct");
            Assert.AreEqual <double>(15000, accounts[1].Balance,
                                     "Balance amount is not correct");
        }