Ejemplo n.º 1
0
        public void SendWithOutCorrectPrice()
        {
            string expectingMessage = ErrorCreater.FormWithInvalidPrice();

            User user = UserCreater.UserWithIncorrectPrice();

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

            Log.Info(ErrorTextForSendWithOutCorrectPrice);

            Assert.AreEqual(expectingMessage, errorMessage, "Price is incorrect for pay online");
        }
Ejemplo n.º 2
0
        public void SendWithCorrectData()
        {
            string expectingMessage = ErrorCreater.CorrectNamePhoneEmail();

            User user = UserCreater.WithAllProperties();

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

            Log.Info(ErrorTextForSendWithCorrectData);

            Assert.AreEqual(expectingMessage, errorMessage, "All data is correct for pay online");
        }