Roles #21

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

View File

@@ -9,13 +9,8 @@ namespace BasicDotnetTemplate.MainProject.Tests;
[TestClass]
public class UserService_Tests
{
private static Role? _expectedRole;
private static User? _user;
private static Role? _role;
private static User? _expectedUser;
private static RoleService? _roleService;
private static UserService? _userService;
[TestMethod]
public void Inizialize()
@@ -74,14 +69,11 @@ public class UserService_Tests
{
try
{
_expectedUser = ModelsInit.CreateUser();
_userService = TestUtils.CreateUserService();
_roleService = TestUtils.CreateRoleService();
var userService = TestUtils.CreateUserService();
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);
}
else