Roles #21

Merged
csimonapastore merged 36 commits from roles into main 2025-03-26 23:52:19 +01:00
Showing only changes of commit caa2cf2035 - Show all commits

View File

@@ -69,32 +69,32 @@ public class UserService_Tests
// } // }
// } // }
// [TestMethod] [TestMethod]
// public async Task GetUserByUsernameAndPassword_Null() public async Task GetUserByUsernameAndPassword_Null()
// { {
// try try
// { {
// _expectedUser = ModelsInit.CreateUser(); _expectedUser = ModelsInit.CreateUser();
// _userService = TestUtils.CreateUserService(); _userService = TestUtils.CreateUserService();
// _roleService = TestUtils.CreateRoleService(); _roleService = TestUtils.CreateRoleService();
// var testString = "test"; var testString = "test";
// if (_userService != null) if (_userService != null)
// { {
// var user = await _userService.GetUserByUsernameAndPassword(testString, testString); var user = await _userService.GetUserByUsernameAndPassword(testString, testString);
// Assert.IsTrue(user == null); Assert.IsTrue(user == null);
// } }
// else else
// { {
// Assert.Fail($"UserService is null"); Assert.Fail($"UserService is null");
// } }
// } }
// catch (Exception ex) catch (Exception ex)
// { {
// Console.WriteLine(ex.InnerException); Console.WriteLine(ex.InnerException);
// Assert.Fail($"An exception was thrown: {ex}"); Assert.Fail($"An exception was thrown: {ex}");
// } }
// } }
// // TODO // // TODO
// // [TestMethod] // // [TestMethod]