Example #1
0
 public static User UserWithSimilarStartDateAndEndDate()
 {
     return(new User(
                TestDataReader.GetData("User.Renter"),
                TestDataReader.GetData("User.Name.Incorrect"),
                TestDataReader.GetData("User.PNumber.Incorrect"),
                TestDataReader.GetData("User.EMail.Incorrect"),
                TestDataReader.GetData("User.FutureDate"),
                TestDataReader.GetData("User.FutureDate"),
                TestDataReader.GetData("User.Price.Incorrect")
                ));
 }
Example #2
0
 public static User UserWithDateLeaseEndDate()
 {
     return(new User(
                TestDataReader.GetData("User.Renter"),
                TestDataReader.GetData("User.Name.Incorrect"),
                TestDataReader.GetData("User.PNumber.Incorrect"),
                TestDataReader.GetData("User.EMail.Incorrect"),
                TestDataReader.GetData("User.FutureDate"),
                TestDataReader.GetData("User.PastDate.Incorrect"),
                TestDataReader.GetData("User.Price.Incorrect")
                ));
 }
Example #3
0
 public static User UserWithIncorrectPhone()
 {
     return(new User(
                TestDataReader.GetData("User.Renter"),
                TestDataReader.GetData("User.Name"),
                TestDataReader.GetData("User.PNumber.Incorrect"),
                TestDataReader.GetData("User.EMail"),
                TestDataReader.GetData("User.FutureDate"),
                TestDataReader.GetData("User.PastDate"),
                TestDataReader.GetData("User.Price")
                ));
 }
Example #4
0
 public static User WithAllProperties()
 {
     return(new User(
                TestDataReader.GetData("User.Renter"),
                TestDataReader.GetData("User.Name"),
                TestDataReader.GetData("User.PNumber"),
                TestDataReader.GetData("User.EMail"),
                TestDataReader.GetData("User.FutureDate"),
                TestDataReader.GetData("User.PastDate"),
                TestDataReader.GetData("User.Price")
                ));
 }
Example #5
0
 public static Route WithoutDate()
 {
     return(new Route(TestDataReader.GetData("DepartureCity"), TestDataReader.GetData("ArrivalCity"), string.Empty));
 }
Example #6
0
 public static Route WithFailDate()
 {
     return(new Route(TestDataReader.GetData("DepartureCity"), TestDataReader.GetData("ArrivalCity"), DateTime.Now.AddDays(-1).ToString("dd.MM.yyyy")));
 }
Example #7
0
 public static Search WithAllProperties()
 {
     return(new Search(TestDataReader.GetData("SearchText")));
 }
Example #8
0
 public static User AuthProperties()
 {
     return(new User(TestDataReader.GetData("Name"), TestDataReader.GetData("AuthEmail"), TestDataReader.GetData("AuthPassword")));
 }
Example #9
0
 public static User WithAllIncorrectProperties()
 {
     return(new User(TestDataReader.GetData("Name"), TestDataReader.GetData("EmailIncorrect")));
 }
Example #10
0
 public static Route WithAllProperties()
 {
     return(new Route(TestDataReader.GetData("DepartureCity").Value, TestDataReader.GetData("ArrivalCity").Value, DateTime.Now.AddDays(1).ToString("dd.MM.yyyy")));
 }
Example #11
0
 public static User WithEmail()
 {
     return(new User(TestDataReader.GetData("Email")));
 }
Example #12
0
 public static Way GetTestStationInfo()
 {
     return(new Way(TestDataReader.GetData("DepartureCity"), TestDataReader.GetData("ArrivalCity"), TestDataReader.GetData("Departure_date")));
 }
Example #13
0
 public static Route WithSameCities()
 {
     return(new Route(TestDataReader.GetData("DepartureCity"), TestDataReader.GetData("DepartureCity"), DateTime.Now.AddDays(1).ToString("dd.MM.yyyy")));
 }
Example #14
0
 public static User UserWithZeroExperience()
 {
     return(new User(TestDataReader.GetData("User.EMail.Incorrect"), TestDataReader.GetData("User.Password"), TestDataReader.GetData("User.Name"), TestDataReader.GetData("User.PNumber"), TestDataReader.GetData("User.Experience.Zero")));
 }
Example #15
0
 public static Registration WithAllProperties()
 {
     return(new Registration(TestDataReader.GetData("Name")));
 }
Example #16
0
 public static User NonRegregisteredUser()
 {
     return(new User(TestDataReader.GetData("User.EMail.Incorrect"), TestDataReader.GetData("User.Password"), TestDataReader.GetData("User.Name"), TestDataReader.GetData("User.PNumber"), TestDataReader.GetData("User.Experience.Normal")));
 }
Example #17
0
 public static Route WithAllProperties()
 {
     return(new Route(TestDataReader.GetData("DepartureCity"), TestDataReader.GetData("ArrivalCity")));
 }
Example #18
0
 public static Product WithName()
 {
     return(new Product(TestDataReader.GetData("name")));
 }
Example #19
0
 public static Message WithAllProperties()
 {
     return(new Message(TestDataReader.GetData("Topic"), TestDataReader.GetData("Email"), TestDataReader.GetData("PNumber"), TestDataReader.GetData("MessageText"))); // fields "Тема", "E-mail","Номер","Сообщение"
 }