71 references to CreateRequest
Microsoft.AspNetCore.Cors.Test (10)
CorsMiddlewareTests.cs (10)
51var response = await server.CreateRequest("/") 93var response = await server.CreateRequest("/") 144var response = await server.CreateRequest("/") 193var response = await server.CreateRequest("/") 258var response = await server.CreateRequest("/") 321var response = await server.CreateRequest("/") 364var response = await server.CreateRequest("/") 480var response = await server.CreateRequest("/") 538var response = await server.CreateRequest("/") 614var response = await server.CreateRequest("/")
Microsoft.AspNetCore.HostFiltering.Tests (4)
HostFilteringMiddlewareTests.cs (4)
168var response = await server.CreateRequest("/").GetAsync(); 220var response = await server.CreateRequest("/").GetAsync(); 259var response = await server.CreateRequest("/").GetAsync(); 264response = await server.CreateRequest("/").GetAsync();
Microsoft.AspNetCore.Routing.FunctionalTests (13)
EndpointRoutingIntegrationTest.cs (10)
56var response = await server.CreateRequest("/").SendAsync("GET"); 88var response = await server.CreateRequest("/not-found").SendAsync("GET"); 120var response = await server.CreateRequest("/").SendAsync("GET"); 152var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => server.CreateRequest("/").SendAsync("GET")); 181var response = await server.CreateRequest("/not-found").SendAsync("GET"); 213var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => server.CreateRequest("/").SendAsync("GET")); 244var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => server.CreateRequest("/").SendAsync("GET")); 275var response = await server.CreateRequest("/").SendAsync("PUT"); 307var request = server.CreateRequest("/"); 343var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => server.CreateRequest("/").SendAsync("GET"));
ShortCircuitTests.cs (3)
52var response = await server.CreateRequest("/shortcircuit").SendAsync("GET"); 90var response1 = await server.CreateRequest("/shortcircuit").SendAsync("GET"); 94var 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)
117var response = await server.CreateRequest("/SubFolder/").GetAsync(); 157var response = await server.CreateRequest("/SubFolder/").GetAsync(); 263var response = await server.CreateRequest(requestUrl + queryString).GetAsync(); 319var response = await server.CreateRequest(requestUrl).GetAsync();
DirectoryBrowserMiddlewareTests.cs (7)
92var response = await server.CreateRequest(requestUrl).GetAsync(); 132var response = await server.CreateRequest("/").GetAsync(); 169var response = await server.CreateRequest("/").GetAsync(); 225var response = await server.CreateRequest(requestUrl).GetAsync(); 269var response = await server.CreateRequest(requestUrl + queryString).GetAsync(); 320var response = await server.CreateRequest(requestUrl).PostAsync(); 368var response = await server.CreateRequest(requestUrl).SendAsync("HEAD");
StaticFileMiddlewareTests.cs (9)
129var response = await server.CreateRequest("TestDocument.txt").GetAsync(); 186var response = await server.CreateRequest(requestUrl).GetAsync(); 225var response = await server.CreateRequest(requestUrl).GetAsync(); 267var response = await server.CreateRequest(requestUrl).GetAsync(); 317var response = await server.CreateRequest(requestUrl).GetAsync(); 360var response = await server.CreateRequest(requestUrl).GetAsync(); 408var response = await server.CreateRequest(requestUrl).GetAsync(); 479var response = await server.CreateRequest(requestUrl).SendAsync("HEAD"); 538var response = await server.CreateRequest(requestUrl).SendAsync(method);
Microsoft.AspNetCore.TestHost.Tests (3)
RequestBuilderTests.cs (3)
15server.CreateRequest("/") 28server.CreateRequest("/") 45var requestBuilder = server.CreateRequest("/");