13 instantiations of AssertionRequirement
Microsoft.AspNetCore.Authorization (2)
AuthorizationPolicyBuilder.cs (2)
203Requirements.Add(new AssertionRequirement(handler)); 216Requirements.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; })
14 references to AssertionRequirement
Microsoft.AspNetCore.Authorization (5)
AssertionRequirement.cs (3)
22/// Creates a new instance of <see cref="AssertionRequirement"/>. 33/// Creates a new instance of <see cref="AssertionRequirement"/>. 44/// Calls <see cref="AssertionRequirement.Handler"/> to see if authorization is allowed.
AuthorizationPolicyBuilder.cs (2)
195/// Adds an <see cref="AssertionRequirement"/> to the current instance. 208/// Adds an <see cref="AssertionRequirement"/> to the current instance.
Microsoft.AspNetCore.Authorization.Test (9)
AssertionRequirementsTests.cs (1)
14var requirement = new AssertionRequirement(context => true);
AuthorizationBuilderTests.cs (1)
103Assert.IsType<AssertionRequirement>(policy.Requirements.First());
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; });