mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 08:11:10 +00:00
Adds authorization permissions administrator dashboard
This commit is contained in:
1 parent
152cb48050
commit
583b8db865
106 files changed
+5916
-2085
No files matched your search
+3
-3
@@ -48,7 +48,7 @@ public class GetAuthorizationEndpointTests
|
||||
CancellationToken cancellationToken = CancellationToken.None;
|
||||
AuthorizationResponse expectedResponse = new(
|
||||
request.UserId!.Value,
|
||||
new HashSet<string> { "Admin" },
|
||||
"Admin",
|
||||
new HashSet<AuthorizationPermission> { AuthorizationPermission.CanViewUsers });
|
||||
|
||||
_mockSender.Send(Arg.Any<GetAuthorizationQuery>(), Arg.Any<CancellationToken>())
|
||||
@@ -99,7 +99,7 @@ public class GetAuthorizationEndpointTests
|
||||
_mockSender.Send(Arg.Any<GetAuthorizationQuery>(), Arg.Any<CancellationToken>())
|
||||
.Returns(ErrorOrFactory.From(new AuthorizationResponse(
|
||||
request.UserId!.Value,
|
||||
new HashSet<string>().ToHashSet(),
|
||||
string.Empty,
|
||||
new HashSet<AuthorizationPermission>().ToHashSet()
|
||||
)));
|
||||
|
||||
@@ -130,7 +130,7 @@ public class GetAuthorizationEndpointTests
|
||||
callInfo.Arg<CancellationToken>().ThrowIfCancellationRequested();
|
||||
return ErrorOrFactory.From(new AuthorizationResponse(
|
||||
request.UserId!.Value,
|
||||
new HashSet<string>().ToHashSet(),
|
||||
string.Empty,
|
||||
new HashSet<AuthorizationPermission>().ToHashSet()
|
||||
));
|
||||
}, callInfo.Arg<CancellationToken>())));
|
||||
|
||||
Reference in new issue
Block a user