public void GetUser() { var userRepository = new UserRepository(); var user = DataGenerator.GenerateUser(); Assert.AreEqual(user.idUser, userRepository.GetUser(user).idUser); }
public void Exist() { var userRepository = new UserRepository(); var user = DataGenerator.GenerateUser(); Assert.AreEqual(true, userRepository.Exist(user.idUser)); }
public void AddUser() { var userRepository = new UserRepository(); var user = DataGenerator.GenerateUser(); userRepository.Create(user); }
public void ChangeNumber() { var userRepository = new UserRepository(); var user = DataGenerator.GenerateUser(); userRepository.ChangeNumber(user, "987"); }
public static void DeleteData() { var userRepository = new UserRepository(); var user = DataGenerator.GenerateUser(); userRepository.Delete(user); }