Adding role creation during startup + minor fixes in tests

This commit is contained in:
2025-03-16 22:41:44 +01:00
parent 7f5178883d
commit 18e713153b
48 changed files with 1449 additions and 340 deletions

View File

@@ -22,18 +22,15 @@ public class UserRole_Tests
{
try
{
DatabaseSqlServer.Role role = new DatabaseSqlServer.Role()
{
Name = "test"
};
DatabaseSqlServer.Role role = ModelsInit.CreateRole();
UserRole userRole = new UserRole(role);
Assert.IsTrue(userRole.Name == role.Name);
}
catch (Exception ex)
{
Console.WriteLine(ex.InnerException);
Assert.Fail($"An exception was thrown: {ex.Message}");
Assert.Fail($"An exception was thrown: {ex}");
}
}
}