Ejemplo n.º 1
0
 protected void RunInAllBrowsers(Action <IBrowserWrapper, FlightSearchPageObject> action)
 {
     base.RunInAllBrowsers(browser =>
     {
         browser.NavigateToUrl(string.Empty);
         var flightSearchPageObject = new FlightSearchPageObject(browser);
         action(browser, flightSearchPageObject);
     });
 }
Ejemplo n.º 2
0
        private void SearchFlightForBestConference(IBrowserWrapper wrapper, FlightSearchPageObject page)
        {
            page.SearchForm.From = "Prague";
            page.SearchForm.To   = "London Heathrow";

            page.SearchForm.Depart = new DateTime(2018, 11, 21);
            page.SearchForm.Return = new DateTime(2018, 11, 24);

            page.SearchForm.TicketClass = TicketClassData.Get(TicketClass.Business);

            page.SearchForm.Search();
        }
Ejemplo n.º 3
0
 private void SearchFormReturn_AfterLoad_IsSetForTodayPlus7(IBrowserWrapper wrapper, FlightSearchPageObject page)
 {
     Assert.Equal(DateTime.Today.AddDays(7), page.SearchForm.Return);
 }
Ejemplo n.º 4
0
 private void SearchFormDepart_AfterLoad_IsSetForToday(IBrowserWrapper wrapper, FlightSearchPageObject page)
 {
     Assert.Equal(DateTime.Today, page.SearchForm.Depart);
 }