Esempio n. 1
0
        public void RoundTripReturnDateValidation()
        {
            ScenarioRunner <BuyTicketPageBehaviors> runner = new ScenarioRunner <BuyTicketPageBehaviors>(
                roundTripReturnDateValidation,
                page => Assert.AreEqual(missingReturnDateValidationMessage, page.AlertText)
                );

            runner.Start();
        }
Esempio n. 2
0
        public void SuccessRoundTripBuying()
        {
            ScenarioRunner <BuyTicketPageBehaviors> runner = new ScenarioRunner <BuyTicketPageBehaviors>(
                successRoundTripBuyingScenario,
                page => Assert.AreEqual(true, page.IsShowingResultsTable)
                );

            runner.Start();
        }
Esempio n. 3
0
        public void PreviousDateSelecting()
        {
            ScenarioRunner <BuyTicketPageBehaviors> runner = new ScenarioRunner <BuyTicketPageBehaviors>(
                previousDateSelectingScenario,
                page => Assert.AreEqual(true, page.IsSelectingPreviousDateFailed)
                );

            runner.Start();
        }
Esempio n. 4
0
        public void InvalidDiscountCode()
        {
            ScenarioRunner <BuyTicketPageBehaviors> runner = new ScenarioRunner <BuyTicketPageBehaviors>(
                invalidDiscountCodeScenario,
                page => Assert.AreEqual(dicountCodeValidationMessage, page.AlertErrorMessage)
                );

            runner.Start();
        }
Esempio n. 5
0
        public void ChangeLanguage()
        {
            ScenarioRunner <MainPageBehaviors> runner = new ScenarioRunner <MainPageBehaviors>(
                changeLanguageScenario,
                page => Assert.AreEqual(japaneseLanguageTitle, page.PageTitle)
                );

            runner.Start();
        }
Esempio n. 6
0
        public void LoginInvalidCredentialsValidation()
        {
            ScenarioRunner <LoginPageBehaviors> runner = new ScenarioRunner <LoginPageBehaviors>(
                loginInvalidCredentialsValidation,
                page => Assert.IsTrue(page.ValidationError.StartsWith(invalidCredentialsValidationError))
                );

            runner.Start();
        }
Esempio n. 7
0
        public void SuccessOneWayMultiPassengersBuying()
        {
            ScenarioRunner <BuyTicketPageBehaviors> runner = new ScenarioRunner <BuyTicketPageBehaviors>(
                successOneWayMultiPassengersBuying,
                page => Assert.IsTrue(page.IsShowingResultsTable)
                );

            runner.Start();
        }
Esempio n. 8
0
        public void ExcessPassengersCount()
        {
            ScenarioRunner <BuyTicketPageBehaviors> runner = new ScenarioRunner <BuyTicketPageBehaviors>(
                excessPassengersCountValidation,
                page => Assert.AreEqual(excesssPassengersCountValidationMessage, page.AlertText)
                );

            runner.Start();
        }
Esempio n. 9
0
        public void RoundTripDepartureDateValidation()
        {
            ScenarioRunner <BuyTicketPageBehaviors> runner = new ScenarioRunner <BuyTicketPageBehaviors>(
                roundTripDepartureDateValidation,
                page =>
            {
                Assert.AreEqual(1, page.CountOfTabs);
                Assert.IsTrue(page.IsDepartureDateRequired);
            }
                );

            runner.Start();
        }