31 references to CreateHttpClient
Aspire.Hosting.Containers.Tests (6)
WithDockerfileTests.cs (6)
44
using var client = app.
CreateHttpClient
("testcontainer", "http");
76
using var client = app.
CreateHttpClient
("testcontainer", "http");
210
using var client = app.
CreateHttpClient
("testcontainer", "http");
244
using var client = app.
CreateHttpClient
("testcontainer", "http");
480
using var client = app.
CreateHttpClient
("testcontainer", "http");
551
using var client = app.
CreateHttpClient
("testcontainer", "http");
Aspire.Hosting.JavaScript.Tests (5)
BunFunctionalTests.cs (2)
24
using var bunClient = _bunFixture.App.
CreateHttpClient
(_bunFixture.BunAppBuilder!.Resource.Name, "http");
34
using var bunClient = _bunFixture.App.
CreateHttpClient
(_bunFixture.BunScriptBuilder!.Resource.Name, "http");
NodeAppFixture.cs (1)
109
using var client = App.
CreateHttpClient
(NodeAppBuilder!.Resource.Name, endpointName: "http");
NodeFunctionalTests.cs (2)
24
using var nodeClient = _nodeJsFixture.App.
CreateHttpClient
(_nodeJsFixture.NodeAppBuilder!.Resource.Name, "http");
34
using var npmClient = _nodeJsFixture.App.
CreateHttpClient
(_nodeJsFixture.NpmAppBuilder!.Resource.Name, "http");
Aspire.Hosting.PostgreSQL.Tests (2)
PostgresFunctionalTests.cs (2)
90
var client = app.
CreateHttpClient
(adminBuilder.Resource.Name, "http");
167
var client = app.
CreateHttpClient
(pgWebBuilder.Resource.Name, "http");
Aspire.Hosting.Redis.Tests (4)
RedisFunctionalTests.cs (4)
84
var client = app.
CreateHttpClient
(commanderBuilder.Resource.Name, "http");
191
var client = app.
CreateHttpClient
(redisInsightBuilder.Resource.Name, "http");
528
var httpClient = app.
CreateHttpClient
(redisInsightBuilder1.Resource.Name, "http");
563
var httpClient = app.
CreateHttpClient
(redisInsightBuilder2.Resource.Name, "http");
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
85
return GetStartedApplication().
CreateHttpClient
(resourceName, endpointName);
Aspire.Hosting.Testing.Tests (4)
TestingBuilderTests.cs (1)
210
Assert.Throws<InvalidOperationException>(() => app.
CreateHttpClient
("mywebapp1"));
TestingPublicApiTests.cs (3)
124
var action = () => app.
CreateHttpClient
(resourceName);
138
var action = () => distributedApplication.
CreateHttpClient
(resourceName);
215
using var client = app.
CreateHttpClient
("service");
Aspire.Hosting.Tests (6)
ContainerTunnelTests.cs (2)
37
using var clientA = app.
CreateHttpClient
(yarp.Resource.Name, "http");
76
using var clientA = app.
CreateHttpClient
(yarp.Resource.Name, "http");
DistributedApplicationTests.cs (4)
780
using var clientA = app.
CreateHttpClient
(testProgram.ServiceABuilder.Resource.Name, "http");
781
using var clientC = app.
CreateHttpClient
(testProgram.ServiceCBuilder.Resource.Name, "http");
1843
using var clientA = app.
CreateHttpClient
(servicea.Resource.Name, "http");
1917
using var clientA = app.
CreateHttpClient
(servicea.Resource.Name, "http");
Aspire.Hosting.Yarp.Tests (1)
YarpFunctionalTests.cs (1)
57
using var httpClient = app.
CreateHttpClient
(yarp.Resource.Name);
Aspire.Playground.Tests (2)
Infrastructure\DistributedApplicationExtensions.cs (2)
179
return app.
CreateHttpClient
(resourceName, endpointName);
218
using (var checkHttpClient = app.
CreateHttpClient
(project.Name))