예제 #1
0
 public static Search WithAllProperties()
 {
     return(new Search(TestDataReader.GetData("SearchText")));
 }
예제 #2
0
 public static User WithAllIncorrectProperties()
 {
     return(new User(TestDataReader.GetData("Name"), TestDataReader.GetData("EmailIncorrect")));
 }
예제 #3
0
 public static User AuthProperties()
 {
     return(new User(TestDataReader.GetData("Name"), TestDataReader.GetData("AuthEmail"), TestDataReader.GetData("AuthPassword")));
 }
예제 #4
0
 public static Registration WithAllProperties()
 {
     return(new Registration(TestDataReader.GetData("Name")));
 }
예제 #5
0
 public static Route WithAllProperties()
 {
     return(new Route(TestDataReader.GetData("DepartureCity"), TestDataReader.GetData("ArrivalCity")));
 }
예제 #6
0
 public static Route WithAllProperties()
 {
     return(new Route(TestDataReader.GetData("DepartureCity"), TestDataReader.GetData("ArrivalCity"), DateTime.Now.AddDays(1).ToString("dd.MM.yyyy")));
 }
예제 #7
0
 public static Way GetTestStationInfo()
 {
     return(new Way(TestDataReader.GetData("DepartureCity"), TestDataReader.GetData("ArrivalCity"), TestDataReader.GetData("Departure_date")));
 }
예제 #8
0
 public static UserData FillUser()
 {
     return(new UserData(TestDataReader.GetTestData("UserName"), TestDataReader.GetTestData("UserSurname"), TestDataReader.GetTestData("Email")));
 }
예제 #9
0
 public static Route WithoutDate()
 {
     return(new Route(TestDataReader.GetData("DepartureCity"), TestDataReader.GetData("ArrivalCity"), string.Empty));
 }
예제 #10
0
 public static UserData FillUserForIncorrectEmailCategory()
 {
     return(new UserData(TestDataReader.GetTestData("UserName"), TestDataReader.GetTestData("UserSurname"), TestDataReader.GetTestData("IncorrectEmail")));
 }
예제 #11
0
 public static UserData FillUserForRussianWordsCategory()
 {
     return(new UserData(TestDataReader.GetTestData("UserNameRussianWords"), TestDataReader.GetTestData("UserSurnameRussianWords"), TestDataReader.GetTestData("Email")));
 }
예제 #12
0
 public static UserData FillUserForTooLongCategory()
 {
     return(new UserData(TestDataReader.GetTestData("UserNameTooLong"), TestDataReader.GetTestData("UserSurnameTooLong"), TestDataReader.GetTestData("Email")));
 }
예제 #13
0
 public static Route WithFailDate()
 {
     return(new Route(TestDataReader.GetData("DepartureCity").Value, TestDataReader.GetData("ArrivalCity").Value, DateTime.Now.AddDays(-1).ToString("dd.MM.yyyy")));
 }
예제 #14
0
 public static Message WithAllProperties()
 {
     return(new Message(TestDataReader.GetData("Topic"), TestDataReader.GetData("Email"), TestDataReader.GetData("PNumber"), TestDataReader.GetData("MessageText"))); // fields "Тема", "E-mail","Номер","Сообщение"
 }