Exemplo n.º 1
0
        public void WhenISubmitTheCalculateCreditCardForm()
        {
            CreditCardPayoffPage currentPage = ScenarioContext.Current.Get <CreditCardPayoffPage>("Current_Page");

            CreditCardPayoffResultPage resultPage = currentPage.SubmitForm();

            ScenarioContext.Current.Set <CreditCardPayoffResultPage>(resultPage, "Current_Page");
        }
Exemplo n.º 2
0
        public void GivenIWantToCalculateCreditCardPayoff()
        {
            CreditCardPayoffPage payoffPage = new CreditCardPayoffPage(context.Driver);

            payoffPage.Navigate();

            ScenarioContext.Current.Set <CreditCardPayoffPage>(payoffPage, "Current_Page");
        }
Exemplo n.º 3
0
        public void WhenIProvideMyAnd(double apr, double balance, double monthlyPayment)
        {
            CreditCardPayoffPage currentPage = ScenarioContext.Current.Get <CreditCardPayoffPage>("Current_Page");

            currentPage.EnterAPR(apr)
            .EnterBalance(balance)
            .EnterMonthlyPayment(monthlyPayment);

            ScenarioContext.Current.Set <CreditCardPayoffPage>(currentPage, "Current_Page");
        }