Beispiel #1
0
        public void WhenIEnterMyPrincipalInterestRateAndTerm()
        {
            CompoundInterestPage page = ScenarioContext.Current.Get <CompoundInterestPage>("Current_Page");

            page.EnterPrincipal(10000);
            page.EnterInterestRate("1.0%");
            page.EnterLoanTerm(LoanYears.ThreeYears);

            CompoundInterestResultPage resultPage = page.SubmitForm();

            ScenarioContext.Current.Set(resultPage, "Current_Page");
        }
        public void SubmitCompoundInterestModel_WithValidData_GoToResultPage()
        {
            CompoundInterestPage entryPage = new CompoundInterestPage(driver);

            entryPage.Navigate();

            CompoundInterestResultPage resultPage = entryPage.FillOutForm(10000.00, "1.0%", LoanYears.ThreeYears);

            Assert.AreEqual("$10,000.00", resultPage.Principal.Text);
            Assert.AreEqual("1.0%", resultPage.InterestRate.Text);
            Assert.AreEqual("3 years", resultPage.Term.Text);
            Assert.AreEqual("$10,303.01", resultPage.AmountSaved.Text);
        }
Beispiel #3
0
        public void ThenIShouldSeeHowMuchMoneyIHaveSaved()
        {
            CompoundInterestResultPage page = ScenarioContext.Current.Get <CompoundInterestResultPage>("Current_Page");

            Assert.AreEqual("$10,303.01", page.AmountSaved.Text);
        }