Example #1
0
        public void InitializeApplication()
        {
            testHelper = new FunctionalTestHelper();
            testHelper.ReInitializeGlobalBank();

            authentication = new AuthenAdapter();
            authentication.SetUserNameAndPassword("Tom", "Password2");
            shell = authentication.OkClick();

            findCustomer           = shell.FindCustomer();
            findCustomer.FirstName = "kari";
            findCustomerResults    = findCustomer.Find();
            addReason = findCustomerResults.QueueForService();
            addReason.ReasonForVisit = "Checking Account - Opening request";
            addReason.Description    = "Test Visit";
            addReason.OkClick();
            rightPane       = shell.ServiceCustomer();
            customerSummary = rightPane.CustomerSummary();
        }
Example #2
0
        public void CheckAccountValueAfterPurchasingCD()
        {
            purchaseCD.DurationTextBox = "150";
            purchaseCD.AmountTextBox   = "100";
            purchaseCD.Purchase();
            customerSummary.ServiceCompleted();
            //check again the account combobox
            findCustomer           = shell.FindCustomer();
            findCustomer.FirstName = "Kari";
            findCustomerResults    = findCustomer.Find();
            addReason = findCustomerResults.QueueForService();
            addReason.ReasonForVisit = "Checking Account - Opening request";
            addReason.Description    = "Test Visit";
            addReason.OkClick();
            rightPane = shell.ServiceCustomer();

            customerSummary = rightPane.CustomerSummary();
            purchaseCD      = rightPane.PurchaseCD();
            Assert.IsTrue(CheckAccountComboBoxValues(2));
        }
        public void CheckCustomerSummaryDisplaysAllDetailsOfVisitor()
        {
            addCustomerToQueue.FirstName      = "Sandesh";
            addCustomerToQueue.MiddleInitial  = "P";
            addCustomerToQueue.LastName       = "Ambekar";
            addCustomerToQueue.Street         = "123, Test St.";
            addCustomerToQueue.City           = "Test City";
            addCustomerToQueue.State          = "Test State";
            addCustomerToQueue.Zip            = "123456";
            addCustomerToQueue.HomeNumber     = "1234567890";
            addCustomerToQueue.WorkNumber     = "1234567890";
            addCustomerToQueue.CellNumber     = "1234567890";
            addCustomerToQueue.SSN            = "123456789";
            addCustomerToQueue.EMail          = "SA@testmail";
            addCustomerToQueue.ReasonForVisit = "Checking Account - Opening request";
            addCustomerToQueue.Description    = "Test Visit";
            addCustomerToQueue.OkClick();

            shell.Close();
            authentication = new AuthenAdapter();
            authentication.SetUserNameAndPassword("Tom", "Password2");
            shell = authentication.OkClick();
            shell.CustomerQueue();
            rightPane       = shell.ServiceCustomer();
            customerSummary = rightPane.CustomerSummary();
            Assert.AreEqual <string>("Sandesh P Ambekar", customerSummary.Name,
                                     "Full Name does not have the correct value");
            Assert.AreEqual <string>("Checking Account - Opening request", customerSummary.ReasonCode,
                                     "Full Name does not have the correct value");
            Assert.AreEqual <string>("Test Visit", customerSummary.ReasonDescription,
                                     "Full Name does not have the correct value");
            Assert.AreEqual <string>("123 Test St., Test City, Test State 12345",
                                     customerSummary.Address, "Address does not have the correct value");
            Assert.AreEqual <string>("123456789", customerSummary.SSN,
                                     "SSN does not have the correct number");
            Assert.AreEqual <string>("1234567890", customerSummary.HomeNumber,
                                     "Home Phone does not have the correct number");
            Assert.AreEqual <string>("SA@testmail", customerSummary.Email,
                                     "Email does not have the correct value");
        }