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