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(); entryPage.EnterInterestRate("1.0%").EnterPrincipal(10000.00).EnterLoanTerm(LoanYears.ThreeYears); CompoundInterestResultPage resultPage = entryPage.SubmitForm(); 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); }