12 references to AssertionRequirement
Microsoft.AspNetCore.Authorization (1)
AuthorizationPolicyBuilder.cs (1)
203Requirements.Add(new AssertionRequirement(handler));
Microsoft.AspNetCore.Authorization.Test (8)
AssertionRequirementsTests.cs (1)
14var requirement = new AssertionRequirement(context => true);
AuthorizationMiddlewareTests.cs (7)
248var req = new AssertionRequirement(_ => true); 288var req = new AssertionRequirement(_ => true); 467var req = new AssertionRequirement(_ => { calledPolicy = true; return assertSuccess; }); 488var req = new AssertionRequirement(_ => { calledPolicy = true; return assertSuccess; }); 489var req2 = new AssertionRequirement(_ => { calledPolicy = true; return assert2Success; }); 508var req = new AssertionRequirement(_ => { calledPolicy = true; return assertSuccess; }); 530var req = new AssertionRequirement(_ => { calledPolicy = true; return assertSuccess; });
Microsoft.AspNetCore.Mvc.Core.Test (2)
ApplicationModels\AuthorizationApplicationModelProviderTest.cs (2)
127new AssertionRequirement((con) => { return true; }) 153new AssertionRequirement((con) => { return true; })
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
AuthorizeFilterIntegrationTest.cs (1)
202new AssertionRequirement((con) => { return true; })