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