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