Exemple #1
0
 public GuestDetailsPageData()
 {
     GivenName   = GuestDetailsPageDataReader.GetData("GivenName");
     Surname     = GuestDetailsPageDataReader.GetData("Surname");
     Email       = GuestDetailsPageDataReader.GetData("Email");
     MobilePhone = GuestDetailsPageDataReader.GetData("MobilePhone");
 }
Exemple #2
0
        public void IncorrectFormatOfGuestNameTest()
        {
            Logger.InitLogger();
            MainPageData mainPageData = new MainPageData(MainPageDataReader.GetData("DeparturePlace"),
                                                         MainPageDataReader.GetData("ArrivalPlace"), MainPageDataReader.GetData("LeaveDate"),
                                                         MainPageDataReader.GetData("ReturnDate"));

            GuestDetailsPageData guestDetailsPageData = new GuestDetailsPageData(GuestDetailsPageDataReader.GetData("GivenName"),
                                                                                 GuestDetailsPageDataReader.GetData("Surname"), GuestDetailsPageDataReader.GetData("Email"));

            Driver.Navigate().GoToUrl(URL);
            Logger.Log.Info("Go to " + URL);
            GuestDetailsPage page = new MainPage(Driver)
                                    .InputRouteData(mainPageData)
                                    .ClickSearchButton()
                                    .ClickContinueButton()
                                    .ClickContinueButton()
                                    .InputGuestData(guestDetailsPageData);

            Assert.AreEqual(IncorrectGuestNameError, page.incorrectNameError.Text);
            Logger.Log.Info("Test complete successfully");
        }