Пример #1
0
        public void SimilarStartDateAndEndDate()
        {
            string expectingMessage = ErrorCreater.SimilarStartDateAndEndDate();

            User user = UserCreater.UserWithSimilarStartDateAndEndDate();

            string errorMessage = new StartPage()
                                  .FillRentalDateEnd(user)
                                  .FillRentalDateStartFields(user)
                                  .ClickSubmitButton()
                                  .GetErrorMessageText();

            Log.Info(ErrorTextForSimilarStartDateAndEdDate);

            Assert.AreEqual(expectingMessage, errorMessage, "Start date is incorrect, equal to end date");
        }
Пример #2
0
        public void SendWithOutCorrectData()
        {
            string expectingMessage = ErrorCreater.FormWithInvalidPhone();

            User user = UserCreater.UserWithSimilarStartDateAndEndDate();

            string errorMessage = new PayOnlinePage()
                                  .FillNameRenterField(user)
                                  .FillNameRenterField(user)
                                  .FillEmailField(user)
                                  .FillPhoneField(user)
                                  .FillPriceField(user)
                                  .SendPayOnline()
                                  .GetErrorMessageText();

            Log.Info(ErrorTextForSendPayOnlineWithInCorrectData);

            Assert.AreEqual(expectingMessage, errorMessage, "Phone is incorrect for pay online");
        }