1 implementation of GetPolicyAsync
Microsoft.AspNetCore.Cors (1)
23 references to GetPolicyAsync
Microsoft.AspNetCore.Cors (1)
Microsoft.AspNetCore.Cors.Test (20)
CorsMiddlewareTests.cs (20)
381mockProvider.Setup(o => o.GetPolicyAsync(It.IsAny<HttpContext>(), It.IsAny<string>()))
399o => o.GetPolicyAsync(It.IsAny<HttpContext>(), It.IsAny<string>()),
410mockProvider.Setup(o => o.GetPolicyAsync(It.IsAny<HttpContext>(), It.IsAny<string>()))
430o => o.GetPolicyAsync(It.IsAny<HttpContext>(), It.IsAny<string>()),
648mockProvider.Setup(o => o.GetPolicyAsync(It.IsAny<HttpContext>(), It.IsAny<string>()))
688mockProvider.Setup(o => o.GetPolicyAsync(It.IsAny<HttpContext>(), It.IsAny<string>()))
707o => o.GetPolicyAsync(It.IsAny<HttpContext>(), "DefaultPolicyName"),
718mockProvider.Setup(o => o.GetPolicyAsync(It.IsAny<HttpContext>(), It.IsAny<string>()))
737o => o.GetPolicyAsync(It.IsAny<HttpContext>(), "MetadataPolicyName"),
798Mock.Get(policyProvider).Verify(v => v.GetPolicyAsync(It.IsAny<HttpContext>(), It.IsAny<string>()), Times.Never());
810mockProvider.Setup(o => o.GetPolicyAsync(It.IsAny<HttpContext>(), It.IsAny<string>()))
829o => o.GetPolicyAsync(It.IsAny<HttpContext>(), "MetadataPolicyName"),
842mockProvider.Setup(o => o.GetPolicyAsync(It.IsAny<HttpContext>(), It.IsAny<string>()))
864o => o.GetPolicyAsync(It.IsAny<HttpContext>(), It.IsAny<string>()),
879mockProvider.Setup(o => o.GetPolicyAsync(It.IsAny<HttpContext>(), It.IsAny<string>()))
901o => o.GetPolicyAsync(It.IsAny<HttpContext>(), It.IsAny<string>()),
915mockProvider.Setup(o => o.GetPolicyAsync(It.IsAny<HttpContext>(), It.IsAny<string>()))
934o => o.GetPolicyAsync(It.IsAny<HttpContext>(), It.IsAny<string>()),
945mockProvider.Setup(o => o.GetPolicyAsync(It.IsAny<HttpContext>(), It.IsAny<string>()))
964o => o.GetPolicyAsync(It.IsAny<HttpContext>(), It.IsAny<string>()),
Microsoft.AspNetCore.Mvc.Cors (1)
Microsoft.AspNetCore.Mvc.Cors.Test (1)