47 references to SendAsync
Microsoft.AspNetCore.Cors.Test (10)
CorsMiddlewareTests.cs (10)
53.SendAsync(accessControlRequestMethod); 95.SendAsync("PUT"); 146.SendAsync(preflightMethod); 196.SendAsync(CorsConstants.PreflightHttpMethod); 262.SendAsync(CorsConstants.PreflightHttpMethod); 324.SendAsync(CorsConstants.PreflightHttpMethod); 366.SendAsync("PUT"); 483.SendAsync(CorsConstants.PreflightHttpMethod); 540.SendAsync("PUT"); 616.SendAsync("PUT");
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"); 311var response = await request.SendAsync(HttpMethods.Options); 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 (24)
CacheHeaderTests.cs (21)
192.SendAsync(method.Method); 198.SendAsync(method.Method); 211.SendAsync(method.Method); 217.SendAsync(method.Method); 224.SendAsync(method.Method); 237.SendAsync(method.Method); 247.SendAsync(method.Method); 253.SendAsync(method.Method); 259.SendAsync(method.Method); 288.SendAsync(method.Method); 303.SendAsync(method.Method); 324.SendAsync(method.Method); 329.SendAsync(method.Method); 342.SendAsync(method.Method); 356.SendAsync(method.Method); 371.SendAsync(method.Method); 376.SendAsync(method.Method); 391.SendAsync(method.Method); 406.SendAsync(method.Method); 420.SendAsync(method.Method); 425.SendAsync(method.Method);
DirectoryBrowserMiddlewareTests.cs (1)
368var response = await server.CreateRequest(requestUrl).SendAsync("HEAD");
StaticFileMiddlewareTests.cs (2)
479var response = await server.CreateRequest(requestUrl).SendAsync("HEAD"); 538var response = await server.CreateRequest(requestUrl).SendAsync(method);