protected override Task HandleRequirementAsync(AuthorizationHandlerContext context, TestRequirement requirement, TestResource resource) { Assert.IsNotNull(context, "context != null"); context.Succeed(requirement); return(Task.FromResult(0)); }
private static void AssertNoSuccessOrFailure(AuthorizationHandlerContext context) { Assert.IsFalse(context.HasSucceeded, "context.HasSucceeded"); Assert.IsFalse(context.HasFailed, "context.HasFailed"); }