public void InitializeApplication() { testHelper = new FunctionalTestHelper(); testHelper.ReInitializeGlobalBank(); authentication = new AuthenAdapter(); authentication.SetUserNameAndPassword("Tom", "Password2"); shell = authentication.OkClick(); findCustomer = shell.FindCustomer(); }
public void CustomerAddedToQueueOnlyOnce() { //Add Deb Mathew to Queue findCustomerResults.QueueForService(); //Add Dean John to Queue findCustomer = shell.FindCustomer(); findCustomer.FirstName = "de"; findCustomerResults = findCustomer.Find(); findCustomerResults.QueueForService(); //Check sequence in the queue StringCollection customersInQueue = shell.GetCustomersInQueue(); Assert.AreEqual <int>(1, customersInQueue.Count, "There should be 1 customer in the Queue"); Assert.AreEqual <string>("Dean J John", customersInQueue[0], "Dean John should be the only person in the Queue"); }
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(); }
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 CustomerAddedToQueueInCorrectOrder() { addReason = findCustomerResults.QueueForService(); addReason.ReasonForVisit = "Checking Account - Opening request"; addReason.Description = "Test Visit1"; addReason.OkClick(); //Add Mary to Queue findCustomer = shell.FindCustomer(); findCustomer.FirstName = "Mary"; findCustomerResults = findCustomer.Find(); addReason = findCustomerResults.QueueForService(); addReason.ReasonForVisit = "Checking Account - Opening request"; addReason.Description = "Test Visit2"; addReason.OkClick(); //Check sequence in the queue StringCollection customersInQueue = shell.GetCustomersInQueue(); Assert.AreEqual <int>(2, customersInQueue.Count, "There should be 2 customer in the Queue"); Assert.AreEqual <string>("Kari Hensien", customersInQueue[0], "Kari Hensein should be added to the Queue"); Assert.AreEqual <string>("Mary K Andersen", customersInQueue[1], "Mary Andersen should be added to the Queue"); }