25 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");
206
using var client = app.
CreateHttpClient
("testcontainer", "http");
240
using var client = app.
CreateHttpClient
("testcontainer", "http");
468
using var client = app.
CreateHttpClient
("testcontainer", "http");
539
using var client = app.
CreateHttpClient
("testcontainer", "http");
Aspire.Hosting.JavaScript.Tests (3)
NodeAppFixture.cs (1)
109
using var client = App.
CreateHttpClient
(NodeAppBuilder!.Resource.Name, endpointName: "http");
NodeFunctionalTests.cs (2)
26
using var nodeClient = _nodeJsFixture.App.
CreateHttpClient
(_nodeJsFixture.NodeAppBuilder!.Resource.Name, "http");
39
using var npmClient = _nodeJsFixture.App.
CreateHttpClient
(_nodeJsFixture.NpmAppBuilder!.Resource.Name, "http");
Aspire.Hosting.PostgreSQL.Tests (2)
PostgresFunctionalTests.cs (2)
88
var client = app.
CreateHttpClient
(adminBuilder.Resource.Name, "http");
165
var client = app.
CreateHttpClient
(pgWebBuilder.Resource.Name, "http");
Aspire.Hosting.Redis.Tests (4)
RedisFunctionalTests.cs (4)
82
var client = app.
CreateHttpClient
(commanderBuilder.Resource.Name, "http");
153
var client = app.
CreateHttpClient
(redisInsightBuilder.Resource.Name, "http");
487
var httpClient = app.
CreateHttpClient
(redisInsightBuilder1.Resource.Name, "http");
522
var httpClient = app.
CreateHttpClient
(redisInsightBuilder2.Resource.Name, "http");
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
86
return GetStartedApplication().
CreateHttpClient
(resourceName, endpointName);
Aspire.Hosting.Testing.Tests (3)
TestingBuilderTests.cs (1)
207
Assert.Throws<InvalidOperationException>(() => app.
CreateHttpClient
("mywebapp1"));
TestingPublicApiTests.cs (2)
124
var action = () => app.
CreateHttpClient
(resourceName);
138
var action = () => distributedApplication.
CreateHttpClient
(resourceName);
Aspire.Hosting.Tests (4)
DistributedApplicationTests.cs (4)
495
using var clientA = app.
CreateHttpClient
(testProgram.ServiceABuilder.Resource.Name, "http");
496
using var clientC = app.
CreateHttpClient
(testProgram.ServiceCBuilder.Resource.Name, "http");
1514
using var clientA = app.
CreateHttpClient
(servicea.Resource.Name, "http");
1585
using var clientA = app.
CreateHttpClient
(servicea.Resource.Name, "http");
Aspire.Playground.Tests (2)
Infrastructure\DistributedApplicationExtensions.cs (2)
179
return app.
CreateHttpClient
(resourceName, endpointName);
218
using (var checkHttpClient = app.
CreateHttpClient
(project.Name))