4 instantiations of CorsHttpMethodActionConstraint
Microsoft.AspNetCore.Mvc.Cors (1)
CorsApplicationModelProvider.cs (1)
102actionConstraints[j] = new CorsHttpMethodActionConstraint(httpConstraint);
Microsoft.AspNetCore.Mvc.Cors.Test (3)
CorsHttpMethodActionConstraintTest.cs (3)
30var constraint = new CorsHttpMethodActionConstraint(new HttpMethodActionConstraint(httpMethods)) as IActionConstraint; 45var constraint = new CorsHttpMethodActionConstraint(new HttpMethodActionConstraint(new[] { "GET", "Post" })) as IActionConstraint; 61var constraint = new CorsHttpMethodActionConstraint(new HttpMethodActionConstraint(httpMethods)) as IActionConstraint;
10 references to CorsHttpMethodActionConstraint
Microsoft.AspNetCore.Mvc.Cors.Test (10)
CorsApplicationModelProviderTest.cs (10)
38Assert.IsType<CorsHttpMethodActionConstraint>(constraint); 57Assert.IsType<CorsHttpMethodActionConstraint>(constraint); 75Assert.IsType<CorsHttpMethodActionConstraint>(constraint); 94Assert.IsType<CorsHttpMethodActionConstraint>(constraint); 113Assert.IsType<CorsHttpMethodActionConstraint>(constraint); 131Assert.IsType<CorsHttpMethodActionConstraint>(constraint); 152Assert.IsType<CorsHttpMethodActionConstraint>(constraint); 171Assert.IsType<CorsHttpMethodActionConstraint>(constraint); 190Assert.IsType<CorsHttpMethodActionConstraint>(constraint); 208Assert.IsNotType<CorsHttpMethodActionConstraint>(constraint);