Added skoruba user service integration test

This commit is contained in:
2026-10-10 15:31:36 +02:00
parent 343f405982
commit 8eca793f5f
12 changed files with 248 additions and 41 deletions
@@ -11,7 +11,7 @@ public sealed class AddUserRoleEndpoint : IEndpoint
{
public void Map(IEndpointRouteBuilder builder)
{
builder.MapPatch("api/users/{userId:Guid}/roles/{roleId}", async (Guid userId, string roleId, HttpContext context,
builder.MapPatch("api/users/{userId:Guid}/roles/{roleId:Guid}", async (Guid userId, Guid roleId, HttpContext context,
IUserService userService, CancellationToken cancellationToken = default) =>
await userService.AddUserRoleAsync(userId, roleId, context.GetUserId(), cancellationToken) switch
{