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