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