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