Fixing coverage

This commit is contained in:
2025-03-23 19:34:32 +01:00
parent de2c914a0c
commit 61f7504e66
2 changed files with 35 additions and 192 deletions

View File

@@ -64,6 +64,7 @@ public class RoleService_Tests
{
try
{
var _roleService = TestUtils.CreateRoleService();
CreateRoleRequestData data = new CreateRoleRequestData()
{
Name = _expectedRole?.Name ?? String.Empty,
@@ -144,6 +145,7 @@ public class RoleService_Tests
{
try
{
var _roleService = TestUtils.CreateRoleService();
if (_roleService != null)
{
var role = await _roleService.GetRoleByIdAsync(_role?.Id ?? 0);
@@ -167,6 +169,7 @@ public class RoleService_Tests
{
try
{
var _roleService = TestUtils.CreateRoleService();
if (_roleService != null)
{
var role = await _roleService.GetRoleByGuidAsync(_role?.Guid ?? String.Empty);
@@ -190,6 +193,7 @@ public class RoleService_Tests
{
try
{
var _roleService = TestUtils.CreateRoleService();
if (_roleService != null)
{
var role = await _roleService.GetRoleByGuidAsync(_role?.Guid ?? String.Empty);