21 references to CreateHttpClient
Aspire.Hosting.Containers.Tests (6)
WithDockerfileTests.cs (6)
41
using var client = app.
CreateHttpClient
("testcontainer", "http");
72
using var client = app.
CreateHttpClient
("testcontainer", "http");
183
using var client = app.
CreateHttpClient
("testcontainer", "http");
216
using var client = app.
CreateHttpClient
("testcontainer", "http");
443
using var client = app.
CreateHttpClient
("testcontainer", "http");
513
using var client = app.
CreateHttpClient
("testcontainer", "http");
Aspire.Hosting.PostgreSQL.Tests (2)
PostgresFunctionalTests.cs (2)
89
var client = app.
CreateHttpClient
(adminBuilder.Resource.Name, "http");
166
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");
148
var client = app.
CreateHttpClient
(redisInsightBuilder.Resource.Name, "http");
476
var httpClient = app.
CreateHttpClient
(redisInsightBuilder1.Resource.Name, "http");
511
var httpClient = app.
CreateHttpClient
(redisInsightBuilder2.Resource.Name, "http");
Aspire.Hosting.Testing.Tests (3)
TestingBuilderTests.cs (1)
201
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)
362
using var clientA = app.
CreateHttpClient
(testProgram.ServiceABuilder.Resource.Name, "http");
363
using var clientC = app.
CreateHttpClient
(testProgram.ServiceCBuilder.Resource.Name, "http");
1047
using var clientA = app.
CreateHttpClient
(servicea.Resource.Name, "http");
1097
using var clientA = app.
CreateHttpClient
(servicea.Resource.Name, "http");
Aspire.Playground.Tests (2)
Infrastructure\DistributedApplicationExtensions.cs (2)
175
return app.
CreateHttpClient
(resourceName, endpointName);
214
using (var checkHttpClient = app.
CreateHttpClient
(project.Name))