71 references to CreateRequest
Microsoft.AspNetCore.Cors.Test (10)
CorsMiddlewareTests.cs (10)
51
var response = await server.
CreateRequest
("/")
93
var response = await server.
CreateRequest
("/")
144
var response = await server.
CreateRequest
("/")
193
var response = await server.
CreateRequest
("/")
258
var response = await server.
CreateRequest
("/")
321
var response = await server.
CreateRequest
("/")
364
var response = await server.
CreateRequest
("/")
480
var response = await server.
CreateRequest
("/")
538
var response = await server.
CreateRequest
("/")
614
var response = await server.
CreateRequest
("/")
Microsoft.AspNetCore.HostFiltering.Tests (4)
HostFilteringMiddlewareTests.cs (4)
168
var response = await server.
CreateRequest
("/").GetAsync();
220
var response = await server.
CreateRequest
("/").GetAsync();
259
var response = await server.
CreateRequest
("/").GetAsync();
264
response = await server.
CreateRequest
("/").GetAsync();
Microsoft.AspNetCore.Routing.FunctionalTests (13)
EndpointRoutingIntegrationTest.cs (10)
56
var response = await server.
CreateRequest
("/").SendAsync("GET");
88
var response = await server.
CreateRequest
("/not-found").SendAsync("GET");
120
var response = await server.
CreateRequest
("/").SendAsync("GET");
152
var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => server.
CreateRequest
("/").SendAsync("GET"));
181
var response = await server.
CreateRequest
("/not-found").SendAsync("GET");
213
var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => server.
CreateRequest
("/").SendAsync("GET"));
244
var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => server.
CreateRequest
("/").SendAsync("GET"));
275
var response = await server.
CreateRequest
("/").SendAsync("PUT");
307
var request = server.
CreateRequest
("/");
343
var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => server.
CreateRequest
("/").SendAsync("GET"));
ShortCircuitTests.cs (3)
52
var response = await server.
CreateRequest
("/shortcircuit").SendAsync("GET");
90
var response1 = await server.
CreateRequest
("/shortcircuit").SendAsync("GET");
94
var response2 = await server.
CreateRequest
("/shortcircuit/whatever").SendAsync("GET");
Microsoft.AspNetCore.StaticFiles.Tests (41)
CacheHeaderTests.cs (21)
191
.
CreateRequest
("/SubFolder/extra.xml")
195
.
CreateRequest
("/SubFolder/extra.xml")
210
.
CreateRequest
("/SubFolder/extra.xml")
215
.
CreateRequest
("/SubFolder/extra.xml")
222
.
CreateRequest
("/SubFolder/extra.xml")
236
.
CreateRequest
("/SubFolder/extra.xml")
244
.
CreateRequest
("/SubFolder/extra.xml")
250
.
CreateRequest
("/SubFolder/extra.xml")
256
.
CreateRequest
("/SubFolder/extra.xml")
286
.
CreateRequest
("/SubFolder/extra.xml")
301
.
CreateRequest
("/SubFolder/extra.xml")
323
.
CreateRequest
("/SubFolder/extra.xml")
327
.
CreateRequest
("/SubFolder/extra.xml")
341
.
CreateRequest
("/SubFolder/extra.xml")
354
.
CreateRequest
("/SubFolder/extra.xml")
370
.
CreateRequest
("/SubFolder/extra.xml")
374
.
CreateRequest
("/SubFolder/extra.xml")
389
.
CreateRequest
("/SubFolder/extra.xml")
404
.
CreateRequest
("/SubFolder/extra.xml")
419
.
CreateRequest
("/SubFolder/extra.xml")
423
.
CreateRequest
("/SubFolder/extra.xml")
DefaultFilesMiddlewareTests.cs (4)
117
var response = await server.
CreateRequest
("/SubFolder/").GetAsync();
157
var response = await server.
CreateRequest
("/SubFolder/").GetAsync();
263
var response = await server.
CreateRequest
(requestUrl + queryString).GetAsync();
319
var response = await server.
CreateRequest
(requestUrl).GetAsync();
DirectoryBrowserMiddlewareTests.cs (7)
92
var response = await server.
CreateRequest
(requestUrl).GetAsync();
132
var response = await server.
CreateRequest
("/").GetAsync();
169
var response = await server.
CreateRequest
("/").GetAsync();
225
var response = await server.
CreateRequest
(requestUrl).GetAsync();
269
var response = await server.
CreateRequest
(requestUrl + queryString).GetAsync();
320
var response = await server.
CreateRequest
(requestUrl).PostAsync();
368
var response = await server.
CreateRequest
(requestUrl).SendAsync("HEAD");
StaticFileMiddlewareTests.cs (9)
129
var response = await server.
CreateRequest
("TestDocument.txt").GetAsync();
186
var response = await server.
CreateRequest
(requestUrl).GetAsync();
225
var response = await server.
CreateRequest
(requestUrl).GetAsync();
267
var response = await server.
CreateRequest
(requestUrl).GetAsync();
317
var response = await server.
CreateRequest
(requestUrl).GetAsync();
360
var response = await server.
CreateRequest
(requestUrl).GetAsync();
408
var response = await server.
CreateRequest
(requestUrl).GetAsync();
479
var response = await server.
CreateRequest
(requestUrl).SendAsync("HEAD");
538
var response = await server.
CreateRequest
(requestUrl).SendAsync(method);
Microsoft.AspNetCore.TestHost.Tests (3)
RequestBuilderTests.cs (3)
15
server.
CreateRequest
("/")
28
server.
CreateRequest
("/")
45
var requestBuilder = server.
CreateRequest
("/");