Пример #1
0
 public void GetUser()
 {
     var userRepository = new UserRepository();
     var user = DataGenerator.GenerateUser();
     Assert.AreEqual(user.idUser, userRepository.GetUser(user).idUser);
 }
Пример #2
0
 public void Exist()
 {
     var userRepository = new UserRepository();
     var user = DataGenerator.GenerateUser();
     Assert.AreEqual(true, userRepository.Exist(user.idUser));
 }
Пример #3
0
 public void AddUser()
 {
     var userRepository = new UserRepository();
     var user = DataGenerator.GenerateUser();
     userRepository.Create(user);
 }
Пример #4
0
 public void ChangeNumber()
 {
     var userRepository = new UserRepository();
     var user = DataGenerator.GenerateUser();
     userRepository.ChangeNumber(user, "987");
 }
Пример #5
0
 public static void DeleteData()
 {
     var userRepository = new UserRepository();
     var user = DataGenerator.GenerateUser();
     userRepository.Delete(user);
 }