예제 #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);
 }