private async Task <User> AddUser(int idRol) { return(await _userRepository.Add(new User { Name = "test", Email = "emailtest", Password = "******", IsActive = true, IdRol = idRol })); }
private async Task <User> AddUserAsync(int idRol) { return(await _userRepositoryTest.Add(new User { UserName = "******", YearsOld = 20, Email = "*****@*****.**", Password = "******", Active = true, IdRol = idRol })); }