99 references to CreateHttpContext
Microsoft.AspNetCore.Routing.Tests (99)
DefaultLinkGeneratorProcessTemplateTest.cs (53)
45var httpContext = CreateHttpContext(ambientValues: new { controller = "Home", action = "Index" }); 77var httpContext = CreateHttpContext(ambientValues: new { controller = "Home", action = "Index" }); 100var httpContext = CreateHttpContext(ambientValues: new { controller = "Home", action = "Index" }); 123var httpContext = CreateHttpContext(ambientValues: new { controller = "Home", action = "Index" }); 146var httpContext = CreateHttpContext(ambientValues: new { controller = "Home", action = "Index" }); 169var httpContext = CreateHttpContext(ambientValues: new { controller = "Home", action = "Index" }); 192var httpContext = CreateHttpContext(ambientValues: new { controller = "Home", action = "Index" }); 215var httpContext = CreateHttpContext(ambientValues: new { controller = "Home", action = "Index" }); 238var httpContext = CreateHttpContext(ambientValues: new { controller = "Home" }); 266var httpContext = CreateHttpContext(ambientValues: new { controller = "Home" }); 295var httpContext = CreateHttpContext(); 319var httpContext = CreateHttpContext(); 351var httpContext = CreateHttpContext(ambientValues: new { controller = "Home" }); 390var httpContext = CreateHttpContext(ambientValues: new { controller = "Home" }); 420var httpContext = CreateHttpContext(ambientValues: new { controller = "Home" }); 455var httpContext = CreateHttpContext(ambientValues: new { controller = "Home" }); 485var httpContext = CreateHttpContext(ambientValues: new { controller = "HoMe" }); 518var httpContext = CreateHttpContext(ambientValues: new { controller = "HoMe" }); 555var httpContext = CreateHttpContext(ambientValues: new { controller = "Home" }); 593var httpContext = CreateHttpContext(ambientValues: new { controller = "Home" }); 627var httpContext = CreateHttpContext(ambientValues: new { controller = "Home" }); 653var httpContext = CreateHttpContext(ambientValues: new { }); 677var httpContext = CreateHttpContext(ambientValues: new { }); 703var httpContext = CreateHttpContext(ambientValues: new { }); 727var httpContext = CreateHttpContext(ambientValues: new { }); 764var httpContext = CreateHttpContext(ambientValues: new { }); 795var httpContext = CreateHttpContext( 829var httpContext = CreateHttpContext(ambientValues: new { controller = "Home", action = "Blog" }); 861var httpContext = CreateHttpContext(ambientValues: new { controller = "Home", action = "Blog" }); 893var httpContext = CreateHttpContext( 927var httpContext = hasHttpContext ? CreateHttpContext(new { }) : null; 953var httpContext = CreateHttpContext(ambientValues: new { }); 979var httpContext = hasHttpContext ? CreateHttpContext(new { }) : null; 1005var httpContext = CreateHttpContext(ambientValues: new { }); 1031var httpContext = CreateHttpContext(ambientValues: new { }); 1057var httpContext = hasHttpContext ? CreateHttpContext(new { }) : null; 1085var httpContext = hasHttpContext ? CreateHttpContext(new { }) : null; 1110var httpContext = CreateHttpContext(ambientValues: new { }); 1133var httpContext = CreateHttpContext(ambientValues: new { }); 1156var httpContext = CreateHttpContext(ambientValues: new { }); 1181var httpContext = CreateHttpContext(ambientValues: new { }); 1206var httpContext = CreateHttpContext(ambientValues: new { }); 1229var httpContext = CreateHttpContext(ambientValues: new { }); 1253var httpContext = CreateHttpContext(ambientValues: new { }); 1276var httpContext = CreateHttpContext(ambientValues: new { }); 1298var httpContext = CreateHttpContext(ambientValues: new { }); 1321var httpContext = CreateHttpContext(ambientValues: new { c = "17" }); 1344var httpContext = CreateHttpContext(ambientValues: new { c = "17" }); 1367var httpContext = CreateHttpContext(ambientValues: new { d = "17" }); 1471var httpContext = CreateHttpContext(ambientValues); 1499var httpContext = CreateHttpContext(ambientValues: new { c = "Products", a = "Edit", id = 10 }); 1527var httpContext = CreateHttpContext(ambientValues: new { c = "Products", a = "Edit", id = 10 }); 1635var httpContext = CreateHttpContext(ambientValues);
DefaultLinkGeneratorTest.cs (16)
41var path = linkGenerator.GetPathByAddress(CreateHttpContext(), 0, values: null); 71var uri = linkGenerator.GetUriByAddress(CreateHttpContext(), 0, values: null); 103var path = linkGenerator.GetPathByAddress(CreateHttpContext(), 1, values: new RouteValueDictionary(new { controller = "Home", action = "Index", })); 138var httpContext = CreateHttpContext(); 232CreateHttpContext(), 271var httpContext = CreateHttpContext(); 366var httpContext = CreateHttpContext(); 413var httpContext = CreateHttpContext(); 438var httpContext = CreateHttpContext(); 462var httpContext = CreateHttpContext(); 486var httpContext = CreateHttpContext(); 509var httpContext = CreateHttpContext(); 537var httpContext = CreateHttpContext(); 633var httpContext = CreateHttpContext(); 672var httpContext = CreateHttpContext(); 711var httpContext = CreateHttpContext();
LinkGeneratorEndpointNameExtensionsTest.cs (3)
26var httpContext = CreateHttpContext(); 76var httpContext = CreateHttpContext(); 127var httpContext = CreateHttpContext();
LinkGeneratorIntegrationTest.cs (23)
216var httpContext = CreateHttpContext(); 237var httpContext = CreateHttpContext(); 258var httpContext = CreateHttpContext(); 279var httpContext = CreateHttpContext(); 300var httpContext = CreateHttpContext(); 321var httpContext = CreateHttpContext(); 342var httpContext = CreateHttpContext(); 367var httpContext = CreateHttpContext(); 388var httpContext = CreateHttpContext(); 409var httpContext = CreateHttpContext(); 430var httpContext = CreateHttpContext(); 451var httpContext = CreateHttpContext(); 472var httpContext = CreateHttpContext(); 493var httpContext = CreateHttpContext(); 514var httpContext = CreateHttpContext(); 535var httpContext = CreateHttpContext(); 556var httpContext = CreateHttpContext(); 577var httpContext = CreateHttpContext(); 598var httpContext = CreateHttpContext(); 619var httpContext = CreateHttpContext(); 640var httpContext = CreateHttpContext(); 661var httpContext = CreateHttpContext(); 682var httpContext = CreateHttpContext();
LinkGeneratorRouteValuesAddressExtensionsTest.cs (4)
32var httpContext = CreateHttpContext(); 90var httpContext = CreateHttpContext(); 149var httpContext = CreateHttpContext(); 181var httpContext = CreateHttpContext(new { controller = "Home", });