Adding PermissionOperation tests + minor fixes

This commit is contained in:
2025-04-27 19:54:55 +02:00
parent c5fa25ceeb
commit 74a5ae5548
6 changed files with 218 additions and 17 deletions

View File

@@ -2,6 +2,7 @@ using BasicDotnetTemplate.MainProject.Services;
using BasicDotnetTemplate.MainProject.Models.Api.Data.User;
using BasicDotnetTemplate.MainProject.Models.Database.SqlServer;
using Newtonsoft.Json;
using BasicDotnetTemplate.MainProject.Models.Api.Common.Exceptions;
@@ -152,6 +153,7 @@ public class UserService_Tests
catch (Exception exception)
{
Assert.IsInstanceOfType(exception, typeof(Exception));
Assert.IsInstanceOfType(exception, typeof(CreateException));
}
}
else