3 instantiations of ExpenseReport
Microsoft.AspNetCore.Authorization.Test (3)
DefaultAuthorizationServiceTests.cs (3)
937
Assert.True((await authorizationService.AuthorizeAsync(user, new
ExpenseReport
(), Operations.Edit)).Succeeded);
938
Assert.False((await authorizationService.AuthorizeAsync(user, new
ExpenseReport
(), Operations.Delete)).Succeeded);
939
Assert.False((await authorizationService.AuthorizeAsync(user, new
ExpenseReport
(), Operations.Create)).Succeeded);
2 references to ExpenseReport
Microsoft.AspNetCore.Authorization.Test (2)
DefaultAuthorizationServiceTests.cs (2)
808
public class ExpenseReportAuthorizationHandler : AuthorizationHandler<OperationAuthorizationRequirement,
ExpenseReport
>
817
protected override Task HandleRequirementAsync(AuthorizationHandlerContext context, OperationAuthorizationRequirement requirement,
ExpenseReport
resource)