Example #1
0
 public User LastNameAndBookingReferenceProperties()
 {
     return(new User(TestDataReader.GetData("Email"),
                     TestDataReader.GetData("Password"),
                     TestDataReader.GetData("FirstName"),
                     TestDataReader.GetData("LastName")));
 }
Example #2
0
 public static User WithAllProperties()
 {
     return(new User(TestDataReader.GetData("FirstName"),
                     TestDataReader.GetData("LastName"),
                     TestDataReader.GetData("Email"),
                     TestDataReader.GetData("Password"),
                     TestDataReader.GetData("PhoneNumber")));
 }
Example #3
0
 public Passenger WithInvalidEmail()
 {
     return(new Passenger(TestDataReader.GetData("FirstName"),
                          TestDataReader.GetData("FamilyName"),
                          TestDataReader.GetData("DayOfBirth"),
                          TestDataReader.GetData("MonthOfBirth"),
                          TestDataReader.GetData("YearOfBirth"),
                          TestDataReader.GetData("Landline"),
                          TestDataReader.GetData("MobilePhone"),
                          "boris.dedeikomail.r",
                          TestDataReader.GetData("Country")));
 }
Example #4
0
 public Passenger WithAllProperties()
 {
     return(new Passenger(TestDataReader.GetData("FirstName"),
                          TestDataReader.GetData("FamilyName"),
                          TestDataReader.GetData("DayOfBirth"),
                          TestDataReader.GetData("MonthOfBirth"),
                          TestDataReader.GetData("YearOfBirth"),
                          TestDataReader.GetData("Landline"),
                          TestDataReader.GetData("MobilePhone"),
                          TestDataReader.GetData("Email"),
                          TestDataReader.GetData("Country")));
 }
Example #5
0
 public Passenger WithInvalidYearOfBirth()
 {
     return(new Passenger(TestDataReader.GetData("FirstName"),
                          TestDataReader.GetData("FamilyName"),
                          TestDataReader.GetData("DayOfBirth"),
                          TestDataReader.GetData("MonthOfBirth"),
                          "2014",
                          TestDataReader.GetData("Landline"),
                          TestDataReader.GetData("MobilePhone"),
                          TestDataReader.GetData("Email"),
                          TestDataReader.GetData("Country")));
 }
Example #6
0
 public static FlightsModel WithAllProperties()
 {
     return(new FlightsModel(TestDataReader.GetData("DepartureCity"), TestDataReader.GetData("ArrivalCity")));
 }
Example #7
0
 public User LastNameVelocityNumberAndPasswordProperties()
 {
     return(new User(TestDataReader.GetData("LastName"),
                     TestDataReader.GetData("VelocityNumber"),
                     TestDataReader.GetData("Password")));
 }
Example #8
0
 public User LastNameAndBookingReferenceProperties()
 {
     return(new User(TestDataReader.GetData("LastName"),
                     TestDataReader.GetData("BookingReference")));
 }
Example #9
0
 public static CountryModel ChosenCountryAndSelectCity()
 {
     return(new CountryModel("", "", TestDataReader.GetData("ChosenCountry").Value, TestDataReader.GetData("SelectCity").Value));
 }
Example #10
0
 public static CountryModel WithCountryProperties()
 {
     return(new CountryModel(TestDataReader.GetData("Country").Value, TestDataReader.GetData("CountryBelarus").Value, "", ""));
 }
Example #11
0
 public static Route WithAllProperties()
 {
     return(new Route(TestDataReader.GetData("ArrivalCity")));
 }
 public static User ConclusionNameAndNewAccount()
 {
     return(new User("", "", TestDataReader.GetData("UserName").Value, TestDataReader.GetData("NewEmail").Value));
 }
 public static Errors WithAllPropertiesErrors()
 {
     return(new Errors(TestDataReader.GetData("ErrorMessage")));
 }
Example #14
0
 public Route WithAllProperties()
 {
     return(new Route(TestDataReader.GetData("Departure"),
                      TestDataReader.GetData("Arrival"),
                      TestDataReader.GetData("LeaveDate")));
 }
Example #15
0
 public Route WithEmptyLeaveData()
 {
     return(new Route(TestDataReader.GetData("Departure"),
                      TestDataReader.GetData("Arrival"),
                      ""));
 }
Example #16
0
 public Route WithEmptyDeparture()
 {
     return(new Route("", TestDataReader.GetData("Arrival"),
                      TestDataReader.GetData("LeaveDate")));
 }
 public static User WithAllProperties()
 {
     return(new User(TestDataReader.GetData("Login").Value, TestDataReader.GetData("Password").Value, "", ""));
 }
Example #18
0
 public Route WithAllProperties()
 {
     return(new Route(TestDataReader.GetData("OriginSurrogate"),
                      TestDataReader.GetData("DestinationSurrogate")));
 }
Example #19
0
 public static FlightsModel OnlyDepartureCity()
 {
     return(new FlightsModel(TestDataReader.GetData("DepartureCity"), ""));
 }
Example #20
0
 public static FlightsModel OnlyArrivalCity()
 {
     return(new FlightsModel("", TestDataReader.GetData("ArrivalCity")));
 }
 public static User ConclusionWrongPassword()
 {
     return(new User(TestDataReader.GetData("NotCorrectPassword").Value));
 }