Implemented interface member:
method
GetPolicyAsync
Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider.GetPolicyAsync(System.String)
1 override of GetPolicyAsync
Microsoft.AspNetCore.Authorization.Test (1)
AuthorizationMiddlewareTests.cs (1)
341
public override Task<AuthorizationPolicy>
GetPolicyAsync
(string policyName)
3 references to GetPolicyAsync
CustomPolicyProvider (1)
Authorization\MinimumAgePolicyProvider.cs (1)
52
return FallbackPolicyProvider.
GetPolicyAsync
(policyName);
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
AuthorizeFilterIntegrationTest.cs (2)
61
policyProvider.Setup(p => p.
GetPolicyAsync
(It.IsAny<string>())).Callback(() => getPolicyCalled++).ReturnsAsync(policy);
92
policyProvider.Setup(p => p.
GetPolicyAsync
(It.IsAny<string>())).Callback(() => getPolicyCalled++).ReturnsAsync(policy);