public static BookingInfo RightBookingInfo()
 {
     return(new BookingInfo(
                TestDataReader.GetData("Name"),
                TestDataReader.GetData("Phone"),
                TestDataReader.GetData("City"),
                TestDataReader.GetData("DateFrom"),
                TestDataReader.GetData("DateTo")
                ));
 }
 public static BookingInfo WrongBookingInfo()
 {
     return(new BookingInfo(
                TestDataReader.GetData("IncorrectName"),
                TestDataReader.GetData("Phone"),
                TestDataReader.GetData("IncorrectCity"),
                TestDataReader.GetData("IncorrectDateFrom"),
                TestDataReader.GetData("IncorrectDateTo")
                ));
 }
示例#3
0
 public static Reservation WithReservationProperties()
 {
     return(new Reservation(TestDataReader.GetData("ReservationCode"), TestDataReader.GetData("PassengerName")));
 }
 public static SignIn WithUserProperties()
 {
     return(new SignIn(TestDataReader.GetData("MemberId"), TestDataReader.GetData("Password")));
 }
示例#5
0
 public static Search WithAllProperties()
 {
     return(new Search(TestDataReader.GetData("DepartureCity"), TestDataReader.GetData("ArrivalCity")));
 }
示例#6
0
 public static Route WithAllProperties()
 {
     return(new Route(TestDataReader.GetData("DepartureCity"), TestDataReader.GetData("ArrivalCity")));
 }
示例#7
0
 public static Route EmptyArrivalCity()
 {
     return(new Route(TestDataReader.GetData("DepartureCity"), ""));
 }
示例#8
0
 public static Route EmptyDepartureCity()
 {
     return(new Route("", TestDataReader.GetData("ArrivalCity")));
 }
示例#9
0
 public static Route OnlyEmail()
 {
     return(new Route("", "", TestDataReader.GetData("Email"), ""));
 }
示例#10
0
 public static Route OnlyDepartureCity()
 {
     return(new Route(TestDataReader.GetData("DepartureCity"), "", "", ""));
 }
示例#11
0
 public static Route OnlyArrivalCity()
 {
     return(new Route("", TestDataReader.GetData("ArrivalCity"), "", ""));
 }
示例#12
0
 public static Passanger OnlyDateofBirthChild()
 {
     return(new Passanger("", "", TestDataReader.GetData("DateOfBirthChild"), "", "", "", ""));
 }
示例#13
0
 public static Passanger WithoutPhoneNumber()
 {
     return(new Passanger(TestDataReader.GetData("FirstName"), TestDataReader.GetData("LastName"), TestDataReader.GetData("DateOfBirth"), TestDataReader.GetData("DocumentNumber"), "",
                          TestDataReader.GetData("Email"), TestDataReader.GetData("ConfirmEmail")));
 }