254 references to TestServer
InMemory.FunctionalTests (254)
BadHttpRequestTests.cs (8)
164
await using (var server = new
TestServer
(context =>
212
await using (var server = new
TestServer
(async context =>
237
await using (var server = new
TestServer
(context => Task.CompletedTask, new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory))))
259
await using (var server = new
TestServer
(context => Task.CompletedTask, new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory))))
343
await using (var server = new
TestServer
(context => Task.CompletedTask, new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) { DiagnosticSource = diagListener }))
390
await using (var server = new
TestServer
(context => context.Request.Body.DrainAsync(default), new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) { DiagnosticSource = diagListener }))
456
await using (var server = new
TestServer
(context => context.Request.Body.DrainAsync(default), new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) { DiagnosticSource = diagListener }))
531
await using (var server = new
TestServer
(context => context.Request.Body.DrainAsync(default), new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(testMeterFactory)) { DiagnosticSource = diagListener }))
ChunkedRequestTests.cs (17)
75
await using (var server = new
TestServer
(App, testContext))
104
await using (var server = new
TestServer
(PipeApp, testContext))
133
await using (var server = new
TestServer
(AppChunked, testContext))
174
await using (var server = new
TestServer
(async httpContext =>
230
await using (var server = new
TestServer
(async httpContext =>
358
await using (var server = new
TestServer
(async httpContext =>
495
await using (var server = new
TestServer
(async context =>
539
await using (var server = new
TestServer
(async context =>
580
await using (var server = new
TestServer
(async httpContext =>
661
await using (var server = new
TestServer
(async httpContext =>
705
await using (var server = new
TestServer
(async httpContext =>
750
await using (var server = new
TestServer
(httpContext =>
861
await using (var server = new
TestServer
(async httpContext =>
911
await using (var server = new
TestServer
(async httpContext =>
967
await using (var server = new
TestServer
(async httpContext =>
1017
await using (var server = new
TestServer
(async httpContext =>
1080
await using (var server = new
TestServer
(async httpContext =>
ChunkedResponseTests.cs (29)
24
await using (var server = new
TestServer
(async httpContext =>
59
await using (var server = new
TestServer
(async httpContext =>
87
await using (var server = new
TestServer
(async httpContext =>
123
await using (var server = new
TestServer
(async httpContext =>
159
await using (var server = new
TestServer
(async httpContext =>
199
await using (var server = new
TestServer
(async httpContext =>
241
await using (var server = new
TestServer
(async httpContext =>
278
await using (var server = new
TestServer
(async httpContext =>
314
await using (var server = new
TestServer
(async httpContext =>
352
await using (var server = new
TestServer
(async httpContext =>
394
await using (var server = new
TestServer
(async httpContext =>
424
await using (var server = new
TestServer
(async httpContext =>
457
await using (var server = new
TestServer
(async httpContext =>
491
await using (var server = new
TestServer
(async httpContext =>
535
await using (var server = new
TestServer
(async httpContext =>
573
await using (var server = new
TestServer
(async httpContext =>
617
await using (var server = new
TestServer
(async httpContext =>
662
await using (var server = new
TestServer
(async httpContext =>
716
await using (var server = new
TestServer
(async httpContext =>
772
await using (var server = new
TestServer
(async httpContext =>
827
await using (var server = new
TestServer
(async httpContext =>
869
await using (var server = new
TestServer
(async httpContext =>
916
await using (var server = new
TestServer
(async httpContext =>
957
await using (var server = new
TestServer
(async httpContext =>
997
await using (var server = new
TestServer
(async httpContext =>
1036
await using (var server = new
TestServer
(async httpContext =>
1073
await using (var server = new
TestServer
(async httpContext =>
1111
await using (var server = new
TestServer
(async httpContext =>
1146
await using (var server = new
TestServer
(async httpContext =>
ConnectionLimitTests.cs (1)
230
return new
TestServer
(app, serviceContext);
DefaultHeaderTests.cs (1)
21
await using (var server = new
TestServer
(ctx => Task.CompletedTask, testContext))
EventSourceTests.cs (1)
41
await using (var server = new
TestServer
(async context =>
KeepAliveTimeoutTests.cs (1)
255
return new
TestServer
(httpContext => App(httpContext, longRunningCt, upgradeCt), context);
KestrelMetricsTests.cs (3)
218
var server = new
TestServer
(async c =>
284
var server = new
TestServer
(async c =>
405
await using var server = new
TestServer
(async c =>
MaxRequestBodySizeTests.cs (13)
31
await using (var server = new
TestServer
(async context =>
73
await using (var server = new
TestServer
(async context =>
120
await using (var server = new
TestServer
(async context =>
169
await using (var server = new
TestServer
(async context =>
211
await using (var server = new
TestServer
(async context =>
251
await using (var server = new
TestServer
(context => context.Request.Body.CopyToAsync(Stream.Null),
288
await using (var server = new
TestServer
(async context =>
328
await using (var server = new
TestServer
(async context =>
373
await using (var server = new
TestServer
(async context =>
421
await using (var server = new
TestServer
(async context =>
468
await using (var server = new
TestServer
(async context =>
513
await using (var server = new
TestServer
(async context =>
586
await using (var server = new
TestServer
(async context =>
MaxRequestLineSizeTests.cs (1)
85
return new
TestServer
(async httpContext => await httpContext.Response.WriteAsync("hello, world"), new TestServiceContext(LoggerFactory, metrics: new KestrelMetrics(meterFactory))
RequestBodyTimeoutTests.cs (3)
30
await using (var server = new
TestServer
(context =>
114
await using (var server = new
TestServer
(context =>
161
await using (var server = new
TestServer
(async context =>
RequestHeaderLimitsTests.cs (1)
176
return new
TestServer
(async httpContext => await httpContext.Response.WriteAsync("hello, world"), new TestServiceContext(LoggerFactory, metrics: kestrelMetrics)
RequestHeadersTimeoutTests.cs (1)
158
return new
TestServer
(async httpContext =>
RequestTargetProcessingTests.cs (3)
22
await using (var server = new
TestServer
(async context =>
67
await using (var server = new
TestServer
(async context =>
99
await using (var server = new
TestServer
(async context =>
RequestTests.cs (52)
30
await using (var server = new
TestServer
(async context =>
61
await using (var server = new
TestServer
(async context =>
82
await using (var server = new
TestServer
(async context =>
116
await using (var server = new
TestServer
(async context =>
182
await using (var server = new
TestServer
(async context =>
235
await using (var server = new
TestServer
(async context =>
287
await using (var server = new
TestServer
(TestApp.EchoAppChunked, testContext))
343
await using var server = new
TestServer
(ExecuteApplication, testContext);
380
await using var server = new
TestServer
(ExecuteApplication, testContext);
414
await using var server = new
TestServer
(ExecuteApplication, testContext);
452
await using var server = new
TestServer
(ExecuteApplication, testContext);
493
await using var server = new
TestServer
(ExecuteApplication, testContext);
536
await using var server = new
TestServer
(ExecuteApplication, testContext);
575
await using (var server = new
TestServer
(async context =>
592
await using (var server = new
TestServer
(async context =>
652
await using (var server = new
TestServer
(TestApp.EchoAppChunked, testContext))
686
await using (var server = new
TestServer
(TestApp.EchoApp, testContext))
725
await using (var server = new
TestServer
(TestApp.EchoAppChunked, testContext))
759
await using (var server = new
TestServer
(TestApp.EchoApp, testContext))
798
await using (var server = new
TestServer
(TestApp.EchoAppChunked, testContext))
854
await using (var server = new
TestServer
(TestApp.EchoAppChunked, testContext))
890
await using (var server = new
TestServer
(TestApp.EchoAppChunked, testContext))
922
await using (var server = new
TestServer
(async httpContext =>
968
await using (var server = new
TestServer
(async httpContext =>
1015
await using (var server = new
TestServer
(async httpContext =>
1047
await using (var server = new
TestServer
(async httpContext =>
1082
await using (var server = new
TestServer
(async httpContext =>
1121
await using (var server = new
TestServer
(async httpContext =>
1181
await using (var server = new
TestServer
(async httpContext =>
1236
await using (var server = new
TestServer
(async httpContext =>
1274
await using (var server = new
TestServer
(TestApp.EchoAppChunked, testContext))
1355
await using (var server = new
TestServer
(async context =>
1396
await using (var server = new
TestServer
(async context =>
1464
await using (var server = new
TestServer
(context => Task.CompletedTask, new TestServiceContext(LoggerFactory)))
1482
await using (var server = new
TestServer
(context => Task.CompletedTask, new TestServiceContext(LoggerFactory)))
1523
await using (var server = new
TestServer
(context => Task.CompletedTask, new TestServiceContext(LoggerFactory)))
1571
await using (var server = new
TestServer
(context => Task.CompletedTask, new TestServiceContext(LoggerFactory)))
1597
await using (var server = new
TestServer
(async context =>
1737
await using (var server = new
TestServer
(async context =>
1830
await using (var server = new
TestServer
(async context =>
1869
await using (var server = new
TestServer
(async httpContext =>
1903
await using (var server = new
TestServer
(async httpContext =>
1953
await using (var server = new
TestServer
(async httpContext =>
1998
await using (var server = new
TestServer
(async httpContext =>
2038
await using (var server = new
TestServer
(async httpContext =>
2082
await using (var server = new
TestServer
(context =>
2137
await using (var server = new
TestServer
(context =>
2199
await using (var server = new
TestServer
(context =>
2231
await using (var server = new
TestServer
(_ => Task.CompletedTask, testContext))
2263
await using (var server = new
TestServer
(context =>
2292
await using (var server = new
TestServer
(context =>
2335
await using (var server = new
TestServer
(context => Task.CompletedTask, new TestServiceContext(LoggerFactory, disableHttp1LineFeedTerminators: false)))
ResponseHeaderTests.cs (4)
21
await using var server = new
TestServer
(context =>
52
await using var server = new
TestServer
(context =>
89
await using var server = new
TestServer
(context =>
110
await using var server = new
TestServer
(context =>
ResponseTests.cs (104)
41
await using (var server = new
TestServer
(context =>
79
await using (var server = new
TestServer
(async context =>
114
await using (var server = new
TestServer
(async context =>
152
await using (var server = new
TestServer
(async context =>
375
await using (var server = new
TestServer
(async context =>
407
await using (var server = new
TestServer
(async context =>
444
await using (var server = new
TestServer
(httpContext =>
482
await using (var server = new
TestServer
(async httpContext =>
518
await using (var server = new
TestServer
(async httpContext =>
552
await using (var server = new
TestServer
(httpContext =>
577
await using (var server = new
TestServer
(httpContext =>
677
await using (var server = new
TestServer
(async httpContext =>
715
await using (var server = new
TestServer
(async httpContext =>
755
await using (var server = new
TestServer
(async httpContext =>
794
await using (var server = new
TestServer
(async httpContext =>
836
await using (var server = new
TestServer
(async httpContext =>
877
await using (var server = new
TestServer
(httpContext =>
913
await using (var server = new
TestServer
(async httpContext =>
957
await using (var server = new
TestServer
(async httpContext =>
998
await using (var server = new
TestServer
(async httpContext =>
1037
await using (var server = new
TestServer
(async httpContext =>
1072
await using (var server = new
TestServer
(async httpContext =>
1115
await using (var server = new
TestServer
(async httpContext =>
1169
await using (var server = new
TestServer
(async httpContext =>
1218
await using (var server = new
TestServer
(async httpContext =>
1265
await using (var server = new
TestServer
(httpContext =>
1306
await using (var server = new
TestServer
(async httpContext =>
1344
await using (var server = new
TestServer
(async httpContext =>
1380
await using (var server = new
TestServer
(async httpContext =>
1410
await using (var server = new
TestServer
(httpContext =>
1438
await using (var server = new
TestServer
(async httpContext =>
1471
await using (var server = new
TestServer
(async httpContext =>
1502
await using (var server = new
TestServer
(async httpContext =>
1537
await using (var server = new
TestServer
(async httpContext =>
1577
await using (var server = new
TestServer
(async httpContext =>
1622
await using (var server = new
TestServer
(async httpContext =>
1668
await using (var server = new
TestServer
(async httpContext =>
1711
await using (var server = new
TestServer
(async httpContext =>
1753
await using (var server = new
TestServer
(async httpContext =>
1795
await using (var server = new
TestServer
(async httpContext =>
1840
await using (var server = new
TestServer
(async httpContext =>
1883
await using (var server = new
TestServer
(httpContext =>
1923
await using (var server = new
TestServer
(async httpContext =>
1966
await using (var server = new
TestServer
(async httpContext =>
2003
await using (var server = new
TestServer
(httpContext => Task.CompletedTask,
2037
await using (var server = new
TestServer
(httpContext =>
2107
await using (var server = new
TestServer
(httpContext =>
2153
await using (var server = new
TestServer
(async httpContext =>
2202
await using (var server = new
TestServer
(TestApp.EchoApp, serviceContext))
2226
await using (var server = new
TestServer
(TestApp.EmptyApp, testContext))
2258
await using (var server = new
TestServer
(async httpContext =>
2302
await using (var server = new
TestServer
(TestApp.EmptyApp, testContext))
2325
await using (var server = new
TestServer
(async httpContext =>
2374
await using (var server = new
TestServer
(async httpContext =>
2424
await using (var server = new
TestServer
(httpContext =>
2477
await using (var server = new
TestServer
(async httpContext =>
2533
await using (var server = new
TestServer
(async httpContext =>
2578
await using (var server = new
TestServer
(async httpContext =>
2628
await using (var server = new
TestServer
(async httpContext =>
2680
await using (var server = new
TestServer
(async httpContext =>
2725
await using (var server = new
TestServer
(async httpContext =>
2766
await using (var server = new
TestServer
(async httpContext =>
2797
await using (var server = new
TestServer
(httpContext =>
2822
await using (var server = new
TestServer
(httpContext =>
2851
await using (var server = new
TestServer
(async httpContext =>
2932
await using (var server = new
TestServer
(async httpContext =>
2961
await using (var server = new
TestServer
(async httpContext =>
2989
await using (var server = new
TestServer
(async httpContext =>
3019
await using (var server = new
TestServer
(async httpContext =>
3051
await using (var server = new
TestServer
(async httpContext =>
3081
await using (var server = new
TestServer
(async httpContext =>
3109
await using (var server = new
TestServer
(async httpContext =>
3140
await using (var server = new
TestServer
(async httpContext =>
3176
await using (var server = new
TestServer
(async httpContext =>
3207
await using (var server = new
TestServer
(async httpContext =>
3253
await using (var server = new
TestServer
(httpContext =>
3285
await using (var server = new
TestServer
(async httpContext =>
3321
await using (var server = new
TestServer
(async context =>
3372
await using (var server = new
TestServer
(async context =>
3446
await using (var server = new
TestServer
(context =>
3477
await using (var server = new
TestServer
(context =>
3546
await using (var server = new
TestServer
(httpContext =>
3577
await using (var server = new
TestServer
(async httpContext =>
3610
await using (var server = new
TestServer
(httpContext =>
3640
await using (var server = new
TestServer
(httpContext =>
3672
await using (var server = new
TestServer
(httpContext =>
3710
await using (var server = new
TestServer
(async httpContext =>
3747
await using (var server = new
TestServer
(async httpContext =>
3773
await using (var server = new
TestServer
(async httpContext =>
3815
await using (var server = new
TestServer
(async httpContext =>
3843
await using (var server = new
TestServer
(async httpContext =>
3874
await using var server = new
TestServer
(async httpContext =>
3907
await using (var server = new
TestServer
(async httpContext =>
3958
await using (var server = new
TestServer
(async httpContext =>
4008
await using (var server = new
TestServer
(async httpContext =>
4069
await using (var server = new
TestServer
(httpContext =>
4114
await using (var server = new
TestServer
(async httpContext =>
4142
await using (var server = new
TestServer
(async httpContext =>
4174
await using (var server = new
TestServer
(async httpContext =>
4203
await using (var server = new
TestServer
(async httpContext =>
4238
await using (var server = new
TestServer
(async httpContext =>
4272
await using (var server = new
TestServer
(httpContext =>
4303
await using (var server = new
TestServer
(async httpContext =>
4335
await using (var server = new
TestServer
(async httpContext =>
TestTransport\TestServer.cs (1)
39
:
this
(app, new TestServiceContext())
UpgradeTests.cs (10)
69
await using (var server = new
TestServer
(async context =>
121
await using (var server = new
TestServer
(async context =>
161
await using (var server = new
TestServer
(async context =>
195
await using (var server = new
TestServer
(async context =>
230
await using (var server = new
TestServer
(async context =>
271
await using (var server = new
TestServer
(async context =>
308
await using (var server = new
TestServer
(async context =>
356
await using (var server = new
TestServer
(async context =>
393
await using var server = new
TestServer
(async context =>
438
await using (var server = new
TestServer
(async context =>