Example #1
0
        public void GivenIWantToCalculateCompoundInterest()
        {
            CompoundInterestPage page = new CompoundInterestPage(context.Driver);

            page.Navigate();

            ScenarioContext.Current.Set(page, "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);
        }