Ejemplo n.º 1
0
 public async Task HandleProtectedShouldThrowWhenRequirementIsNull()
 {
     var requirement = new TestClaimsRequirement();
     var context     = new AuthorizationHandlerContext(new IAuthorizationRequirement[0], null, null);
     await requirement.HandleProtectedAsync(context, null);
 }
Ejemplo n.º 2
0
 public async Task HandleProtectedShouldThrowWhenContextIsNull()
 {
     var requirement = new TestClaimsRequirement();
     await requirement.HandleProtectedAsync(null, new TestClaimsRequirement());
 }