Added skoruba user service integration test
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user