Adding tests for CRUD operations on users

This commit is contained in:
2025-06-20 20:37:40 +02:00
parent 12b4a4d0c8
commit a6193c3c94
2 changed files with 236 additions and 4 deletions

View File

@@ -435,8 +435,6 @@ public class RoleController_Tests
#endregion
#region "UPDATE"
[TestMethod]
@@ -643,7 +641,7 @@ public class RoleController_Tests
It.IsAny<CreateRoleRequestData>(), It.IsAny<Role>()
)).ThrowsAsync(new Exception("Unexpected error"));
ObjectResult response = (ObjectResult)(await _roleController.UpdateRoleAsync(request, role.Guid));
ObjectResult response = (ObjectResult)await _roleController.UpdateRoleAsync(request, role.Guid);
Assert.IsInstanceOfType(response, typeof(ObjectResult));
if (response != null && response.Value != null)
@@ -668,4 +666,5 @@ public class RoleController_Tests
}
#endregion
}