98 writes to BaseAddress
Aspire.Dashboard.Tests (18)
Integration\FrontendBrowserTokenAuthTests.cs (5)
40using var client = new HttpClient { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 62using var client = new HttpClient { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 93using var client = new HttpClient { BaseAddress = new Uri($"http://{app.OtlpServiceHttpEndPointAccessor().EndPoint}") }; 117using var client = new HttpClient { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 142using var client = new HttpClient { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") };
Integration\FrontendOpenIdConnectAuthTests.cs (2)
37using var client = new HttpClient(handler) { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 82using var client = new HttpClient(handler) { BaseAddress = new Uri($"http://{app.OtlpServiceHttpEndPointAccessor().EndPoint}") };
Integration\IntegrationTestHelpers.cs (1)
133return new HttpClient(handler) { BaseAddress = new Uri(address) };
Integration\OtlpHttpServiceTests.cs (5)
228using var client = new HttpClient { BaseAddress = new Uri($"http://{endpoint.EndPoint}") }; 256using var client = new HttpClient { BaseAddress = new Uri($"http://{endpoint.EndPoint}") }; 281using var client = new HttpClient { BaseAddress = new Uri($"http://{endpoint.EndPoint}") }; 310using var client = new HttpClient { BaseAddress = new Uri($"http://{endpoint.EndPoint}") }; 339using var client = new HttpClient { BaseAddress = new Uri($"http://{endpoint.EndPoint}") };
Integration\ResponseCompressionTests.cs (2)
23using var client = new HttpClient(httpClientHandler) { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") }; 45using var client = new HttpClient(httpClientHandler) { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") };
Integration\StartupTests.cs (3)
296BaseAddress = new Uri($"https://{app.FrontendSingleEndPointAccessor().EndPoint}") 397BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") 690using var client = new HttpClient { BaseAddress = new Uri($"http://{app.FrontendSingleEndPointAccessor().EndPoint}") };
Aspire.Hosting.Redis (1)
RedisBuilderExtensions.cs (1)
191client.BaseAddress = new Uri($"{insightEndpoint.Scheme}://{insightEndpoint.Host}:{insightEndpoint.Port}");
Aspire.Hosting.Testing (1)
DistributedApplicationHostingTestingExtensions.cs (1)
28client.BaseAddress = new(baseUri);
Aspire.Hosting.Testing.Tests (1)
DistributedApplicationHttpClientExtensionsForTests.cs (1)
15client.BaseAddress = baseUri;
Aspire.Hosting.Tests (1)
tests\Aspire.Hosting.Testing.Tests\DistributedApplicationHttpClientExtensionsForTests.cs (1)
15client.BaseAddress = baseUri;
Aspire.Playground.Tests (2)
Infrastructure\DistributedApplicationExtensions.cs (2)
185BaseAddress = app.GetEndpoint(resourceName, endpointName) 203httpClient.BaseAddress = app.GetEndpoint(resourceName, endpointName);
Aspire.Seq (1)
SeqHealthCheck.cs (1)
14readonly HttpClient _client = new(new SocketsHttpHandler { ActivityHeadersPropagator = null }) { BaseAddress = new Uri(seqUri) };
BasicTestApp (1)
Program.cs (1)
34builder.Services.AddSingleton(new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
BasicWebSite (1)
StartupWithoutEndpointRouting.cs (1)
67client.BaseAddress = new Uri($"{httpContext.Request.Scheme}://{httpContext.Request.Host}");
Diagnostics.FunctionalTests (1)
TestFixture.cs (1)
37Client.BaseAddress = new Uri("http://localhost");
HostedBlazorWebassemblyApp.Client (1)
Program.cs (1)
24builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\CompressionTests.cs (1)
133BaseAddress = _fixture.Client.BaseAddress,
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
47BaseAddress = httpClient.BaseAddress,
IIS.LongTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
47BaseAddress = httpClient.BaseAddress,
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1378BaseAddress = new Uri(deploymentParameters.ApplicationBaseUriHint),
IIS.Microbenchmarks (1)
PlaintextBenchmark.cs (1)
30BaseAddress = _server.HttpClient.BaseAddress,
IIS.NewHandler.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
47BaseAddress = httpClient.BaseAddress,
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1378BaseAddress = new Uri(deploymentParameters.ApplicationBaseUriHint),
IIS.NewShim.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
47BaseAddress = httpClient.BaseAddress,
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1378BaseAddress = new Uri(deploymentParameters.ApplicationBaseUriHint),
IIS.ShadowCopy.Tests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
47BaseAddress = httpClient.BaseAddress,
IIS.Tests (1)
Utilities\TestServer.cs (1)
118BaseAddress = BaseUri,
IISExpress.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\CompressionTests.cs (1)
133BaseAddress = _fixture.Client.BaseAddress,
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
47BaseAddress = httpClient.BaseAddress,
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (1)
1378BaseAddress = new Uri(deploymentParameters.ApplicationBaseUriHint),
Keycloak.Web (1)
Program.cs (1)
26client.BaseAddress = new("https+http://apiservice");
Microsoft.AspNetCore.HeaderPropagation.Tests (2)
HeaderPropagationIntegrationTest.cs (1)
209var client = services.AddHttpClient("example.com", c => c.BaseAddress = new Uri("http://example.com"))
HeaderPropagationMessageHandlerTest.cs (1)
29BaseAddress = new Uri("http://example.com")
Microsoft.AspNetCore.Http.Connections.Tests (3)
HttpConnectionDispatcherTests.cs (3)
3257client.BaseAddress = new Uri(url); 3320client.BaseAddress = new Uri(url); 3419client.BaseAddress = new Uri(url);
Microsoft.AspNetCore.HttpsPolicy.Tests (9)
HstsMiddlewareTests.cs (8)
64client.BaseAddress = new Uri("https://example.com:5050"); 111client.BaseAddress = new Uri("https://example.com:5050"); 157client.BaseAddress = new Uri("https://example.com:5050"); 202client.BaseAddress = new Uri($"https://{hostUrl}:5050"); 257client.BaseAddress = new Uri($"https://{hostUrl}:5050"); 312client.BaseAddress = new Uri($"https://{hostUrl}:5050"); 359client.BaseAddress = new Uri("http://example.com:5050"); 405client.BaseAddress = new Uri("https://example.com:5050");
HttpsPolicyTests.cs (1)
73client.BaseAddress = new Uri(response.Headers.Location.ToString());
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
ComponentRenderingFunctionalTests.cs (1)
208BaseAddress = fixture.ClientOptions.BaseAddress
Microsoft.AspNetCore.Mvc.Testing (2)
WebApplicationFactory.cs (2)
514client.BaseAddress = new Uri("http://localhost"); 528client.BaseAddress = baseAddress;
Microsoft.AspNetCore.Routing.FunctionalTests (6)
Benchmarks\EndpointRoutingBenchmarkTest.cs (1)
35_client.BaseAddress = new Uri("http://localhost");
Benchmarks\RouterBenchmarkTest.cs (1)
36_client.BaseAddress = new Uri("http://localhost");
EndpointRoutingSampleTest.cs (1)
27_client.BaseAddress = new Uri("http://localhost");
RouterSampleTest.cs (1)
25_client.BaseAddress = new Uri("http://localhost");
RoutingTestFixture.cs (2)
31Client.BaseAddress = new Uri("http://localhost"); 39client.BaseAddress = new Uri(baseAddress);
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Common\DeploymentResult.cs (1)
67BaseAddress = new Uri(ApplicationBaseUri),
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISDeploymentResult.cs (1)
41BaseAddress = base.HttpClient.BaseAddress,
Microsoft.AspNetCore.SignalR.Tests (2)
EndToEndTests.cs (2)
479client.BaseAddress = new Uri(server.Url); 653client.BaseAddress = new Uri(server.Url);
Microsoft.AspNetCore.StaticFiles.FunctionalTests (7)
FallbackStaticFileTest.cs (2)
57using (var client = new HttpClient { BaseAddress = new Uri(Helpers.GetAddress(host)) }) 106using (var client = new HttpClient { BaseAddress = new Uri(Helpers.GetAddress(host)) })
StaticFileMiddlewareTests.cs (5)
36using (var client = new HttpClient { BaseAddress = new Uri(Helpers.GetAddress(host)) }) 81using (var client = new HttpClient { BaseAddress = new Uri(Helpers.GetAddress(host)) }) 106using (var client = new HttpClient { BaseAddress = new Uri(Helpers.GetAddress(host)) }) 156using (var client = new HttpClient { BaseAddress = new Uri(Helpers.GetAddress(host)) }) 198using (var client = new HttpClient { BaseAddress = new Uri(Helpers.GetAddress(host)) })
Microsoft.AspNetCore.TestHost (1)
TestServer.cs (1)
179BaseAddress = BaseAddress,
Microsoft.AspNetCore.Testing (3)
ServiceFakesHostExtensions.cs (3)
49return new HttpClient(httpHandler) { BaseAddress = uri }; 52return new HttpClient { BaseAddress = uri }; 55return new HttpClient(handler) { BaseAddress = uri };
Microsoft.AspNetCore.Testing.Tests (1)
FakesExtensionsTests.cs (1)
62BaseAddress = host.GetListenUris().First()
Microsoft.DotNet.Build.Tasks.Feed (1)
src\CreateAzureDevOpsFeed.cs (1)
134BaseAddress = new Uri(azureDevOpsFeedsBaseUrl)
Microsoft.DotNet.Git.IssueManager (1)
Clients\AzureDevOpsClient.cs (1)
54BaseAddress = new Uri($"https://dev.azure.com/{accountName}/{projectName}/")
Microsoft.Extensions.Http.Polly.Tests (8)
DependencyInjection\PollyHttpClientBuilderExtensionsTest.cs (8)
46serviceCollection.AddHttpClient("example.com", c => c.BaseAddress = new Uri("http://example.com")) 81serviceCollection.AddHttpClient("example.com", c => c.BaseAddress = new Uri("http://example.com")) 119serviceCollection.AddHttpClient("example.com", c => c.BaseAddress = new Uri("http://example.com")) 160serviceCollection.AddHttpClient("example.com", c => c.BaseAddress = new Uri("http://example.com")) 199serviceCollection.AddHttpClient("example.com", c => c.BaseAddress = new Uri("http://example.com")) 257serviceCollection.AddHttpClient("example.com", c => c.BaseAddress = new Uri("http://example.com")) 302serviceCollection.AddHttpClient("example.com", c => c.BaseAddress = new Uri("http://example.com")) 416serviceCollection.AddHttpClient("example.com", c => c.BaseAddress = new Uri("http://example.com"))
Microsoft.Extensions.ServiceDiscovery.Tests (1)
ServiceEndpointResolverTests.cs (1)
60serviceCollection.AddHttpClient("foo", c => c.BaseAddress = new("http://foo")).AddServiceDiscovery();
MyFrontend (1)
Program.cs (1)
11builder.Services.AddHttpClient<CatalogServiceClient>(c => c.BaseAddress = new("https+http://catalogservice"));
Negotiate.Client (2)
Controllers\AuthTestController.cs (2)
333BaseAddress = new Uri(remote), 347BaseAddress = new Uri(remote)
WaitFor.Frontend (1)
Program.cs (1)
9builder.Services.AddHttpClient<ApiClient>(c => c.BaseAddress = new("http://api"));
114 references to BaseAddress
Aspire.Playground.Tests (4)
AppHostTests.cs (4)
102_testOutput.WriteLine($"Calling endpoint '{client.BaseAddress}{path.TrimStart('/')} for resource '{resource}' in app '{Path.GetFileNameWithoutExtension(appHostPath)}'"); 109throw new XunitException($"Endpoint '{client.BaseAddress}{path.TrimStart('/')}' for resource '{resource}' in app '{Path.GetFileNameWithoutExtension(appHostPath)}' timed out", tre); 112Assert.True(HttpStatusCode.OK == response.StatusCode, $"Endpoint '{client.BaseAddress}{path.TrimStart('/')}' for resource '{resource}' in app '{Path.GetFileNameWithoutExtension(appHostPath)}' returned status code {response.StatusCode}"); 273Assert.True(HttpStatusCode.OK == response.StatusCode, $"Endpoint '{client.BaseAddress}{path.TrimStart('/')}' for resource 'consumer' in app '{Path.GetFileNameWithoutExtension(appHostPath)}' returned status code {response.StatusCode}");
BasicTestApp (1)
AuthTest\ServerAuthenticationStateProvider.cs (1)
24var uri = new Uri(_httpClient.BaseAddress, "/subdir/api/User");
IIS.FunctionalTests (56)
Http2TrailersResetTests.cs (25)
49var response = await SendRequestAsync(Fixture.Client.BaseAddress.ToString() + "ResponseTrailers_HTTP2_TrailersAvailable"); 60var response = await SendRequestAsync(Fixture.Client.BaseAddress.ToString() + "ResponseTrailers_ProhibitedTrailers_Blocked"); 71var response = await SendRequestAsync(Fixture.Client.BaseAddress.ToString() + "ResponseTrailers_NoBody_TrailersSent"); 83var response = await SendRequestAsync(Fixture.Client.BaseAddress.ToString() + "ResponseTrailers_WithBody_TrailersSent"); 98var response = await SendRequestAsync(Fixture.Client.BaseAddress.ToString() + "ResponseTrailers_WithContentLengthBody_TrailersSent"); 113var response = await SendRequestAsync(Fixture.Client.BaseAddress.ToString() + "ResponseTrailers_WithTrailersBeforeContentLengthBody_TrailersSent"); 131var response = await SendRequestAsync(Fixture.Client.BaseAddress.ToString() + "ResponseTrailers_WithContentLengthBodyAndDeclared_TrailersSent"); 148var response = await SendRequestAsync(Fixture.Client.BaseAddress.ToString() + "ResponseTrailers_MultipleValues_SentAsSeparateHeaders"); 163var response = await SendRequestAsync(Fixture.Client.BaseAddress.ToString() + "ResponseTrailers_CompleteAsyncNoBody_TrailersSent"); 169var response2 = await SendRequestAsync(Fixture.Client.BaseAddress.ToString() + "ResponseTrailers_CompleteAsyncNoBody_TrailersSent_Completed"); 179var response = await SendRequestAsync(Fixture.Client.BaseAddress.ToString() + "ResponseTrailers_CompleteAsyncWithBody_TrailersSent"); 186var response2 = await SendRequestAsync(Fixture.Client.BaseAddress.ToString() + "ResponseTrailers_CompleteAsyncWithBody_TrailersSent_Completed"); 196.UseHttp2Cat(Fixture.Client.BaseAddress.AbsoluteUri, async h2Connection => 224.UseHttp2Cat(Fixture.Client.BaseAddress.AbsoluteUri, async h2Connection => 237var response = await client.GetAsync(Fixture.Client.BaseAddress + "/Reset_BeforeResponse_Resets_Complete"); 251.UseHttp2Cat(Fixture.Client.BaseAddress.AbsoluteUri, async h2Connection => 285.UseHttp2Cat(Fixture.Client.BaseAddress.AbsoluteUri, async h2Connection => 298var response = await client.GetAsync(Fixture.Client.BaseAddress + "/Reset_BeforeResponse_Zero_Resets_Complete"); 312.UseHttp2Cat(Fixture.Client.BaseAddress.AbsoluteUri, async h2Connection => 322var response = await client.GetAsync(Fixture.Client.BaseAddress + "/Reset_AfterResponseHeaders_Resets_Complete"); 344.UseHttp2Cat(Fixture.Client.BaseAddress.AbsoluteUri, async h2Connection => 380.UseHttp2Cat(Fixture.Client.BaseAddress.AbsoluteUri, async h2Connection => 405.UseHttp2Cat(Fixture.Client.BaseAddress.AbsoluteUri, async h2Connection => 430.UseHttp2Cat(Fixture.Client.BaseAddress.AbsoluteUri, async h2Connection => 459.UseHttp2Cat(Fixture.Client.BaseAddress.AbsoluteUri, async h2Connection =>
Http3Tests.cs (10)
50var response = await client.GetAsync(Fixture.Client.BaseAddress.ToString() + "Http3_Direct"); 60var address = Fixture.Client.BaseAddress.ToString() + "Http3_AltSvcHeader_UpgradeFromHttp1"; 84var address = Fixture.Client.BaseAddress.ToString() + "Http3_AltSvcHeader_UpgradeFromHttp2"; 105var address = Fixture.Client.BaseAddress.ToString() + "Http3_ResponseTrailers"; 119var address = Fixture.Client.BaseAddress.ToString() + "Http3_ResetBeforeHeaders"; 132var address = Fixture.Client.BaseAddress.ToString() + "Http3_ResetAfterHeaders"; 137await client.GetAsync(Fixture.Client.BaseAddress.ToString() + "Http3_ResetAfterHeaders_SetResult"); 148var address = Fixture.Client.BaseAddress.ToString() + "Http3_AppExceptionAfterHeaders_InternalError"; 154await client.GetAsync(Fixture.Client.BaseAddress.ToString() + "Http3_AppExceptionAfterHeaders_InternalError_SetResult"); 165var address = Fixture.Client.BaseAddress.ToString() + "Http3_Abort_Cancel";
src\Servers\IIS\IIS\test\Common.FunctionalTests\CompressionTests.cs (1)
133BaseAddress = _fixture.Client.BaseAddress,
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (1)
100using (var connection = new TestConnection(result.HttpClient.BaseAddress.Port))
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (9)
65.UseHttp2Cat(Fixture.Client.BaseAddress.AbsoluteUri, async h2Connection => 102.UseHttp2Cat(Fixture.Client.BaseAddress.AbsoluteUri, async h2Connection => 145.UseHttp2Cat(Fixture.Client.BaseAddress.AbsoluteUri, async h2Connection => 215.UseHttp2Cat(Fixture.Client.BaseAddress.AbsoluteUri, async h2Connection => 277.UseHttp2Cat(Fixture.Client.BaseAddress.AbsoluteUri, async h2Connection => 320var response = await SendRequestAsync(Fixture.Client.BaseAddress.ToString() + "ResponseTrailers_HTTP1_TrailersNotAvailable", http2: false); 333.UseHttp2Cat(Fixture.Client.BaseAddress.AbsoluteUri, async h2Connection => 362var response = await client.GetStringAsync(Fixture.Client.BaseAddress + "Reset_Http1_NotSupported"); 376var response = await client.GetStringAsync(Fixture.Client.BaseAddress + "Reset_PriorOSVersions_NotSupported");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
47BaseAddress = httpClient.BaseAddress,
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
72return new TestConnection(Client.BaseAddress.Port);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Inprocess\MaxRequestBodySizeTests.cs (1)
120using (var connection = new TestConnection(deploymentResult.HttpClient.BaseAddress.Port))
src\Servers\IIS\IIS\test\Common.FunctionalTests\Latin1Tests.cs (1)
82using (var connection = new TestConnection(deploymentResult.HttpClient.BaseAddress.Port))
src\Servers\IIS\IIS\test\Common.FunctionalTests\MaxRequestBodySizeTests.cs (1)
121using (var connection = new TestConnection(deploymentResult.HttpClient.BaseAddress.Port))
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestPathBaseTests.cs (1)
91"Host: " + _fixture.Client.BaseAddress.Authority,
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (4)
409var port = _fixture.Client.BaseAddress.Port; 582var request = new HttpRequestMessage(new HttpMethod(method), _fixture.Client.BaseAddress + $"SetCustomErorCode?code={code}"); 666Assert.Equal(_fixture.Client.BaseAddress.ToString(), await _fixture.Client.GetStringAsync("/ServerAddresses")); 798"Host: " + _fixture.Client.BaseAddress.Authority,
IIS.LongTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
47BaseAddress = httpClient.BaseAddress,
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
72return new TestConnection(Client.BaseAddress.Port);
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (2)
208var connection = new TestConnection(deploymentResult.HttpClient.BaseAddress.Port); 225var statusConnection = new TestConnection(deploymentResult.HttpClient.BaseAddress.Port);
IIS.Microbenchmarks (1)
PlaintextBenchmark.cs (1)
30BaseAddress = _server.HttpClient.BaseAddress,
IIS.NewHandler.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
47BaseAddress = httpClient.BaseAddress,
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
72return new TestConnection(Client.BaseAddress.Port);
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (2)
208var connection = new TestConnection(deploymentResult.HttpClient.BaseAddress.Port); 225var statusConnection = new TestConnection(deploymentResult.HttpClient.BaseAddress.Port);
IIS.NewShim.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
47BaseAddress = httpClient.BaseAddress,
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
72return new TestConnection(Client.BaseAddress.Port);
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (2)
208var connection = new TestConnection(deploymentResult.HttpClient.BaseAddress.Port); 225var statusConnection = new TestConnection(deploymentResult.HttpClient.BaseAddress.Port);
IIS.ShadowCopy.Tests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
47BaseAddress = httpClient.BaseAddress,
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
72return new TestConnection(Client.BaseAddress.Port);
IISExpress.FunctionalTests (23)
src\Servers\IIS\IIS\test\Common.FunctionalTests\CompressionTests.cs (1)
133BaseAddress = _fixture.Client.BaseAddress,
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (1)
100using (var connection = new TestConnection(result.HttpClient.BaseAddress.Port))
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (9)
65.UseHttp2Cat(Fixture.Client.BaseAddress.AbsoluteUri, async h2Connection => 102.UseHttp2Cat(Fixture.Client.BaseAddress.AbsoluteUri, async h2Connection => 145.UseHttp2Cat(Fixture.Client.BaseAddress.AbsoluteUri, async h2Connection => 215.UseHttp2Cat(Fixture.Client.BaseAddress.AbsoluteUri, async h2Connection => 277.UseHttp2Cat(Fixture.Client.BaseAddress.AbsoluteUri, async h2Connection => 320var response = await SendRequestAsync(Fixture.Client.BaseAddress.ToString() + "ResponseTrailers_HTTP1_TrailersNotAvailable", http2: false); 333.UseHttp2Cat(Fixture.Client.BaseAddress.AbsoluteUri, async h2Connection => 362var response = await client.GetStringAsync(Fixture.Client.BaseAddress + "Reset_Http1_NotSupported"); 376var response = await client.GetStringAsync(Fixture.Client.BaseAddress + "Reset_PriorOSVersions_NotSupported");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
47BaseAddress = httpClient.BaseAddress,
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISTestSiteFixture.cs (1)
72return new TestConnection(Client.BaseAddress.Port);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Inprocess\MaxRequestBodySizeTests.cs (1)
120using (var connection = new TestConnection(deploymentResult.HttpClient.BaseAddress.Port))
src\Servers\IIS\IIS\test\Common.FunctionalTests\Latin1Tests.cs (1)
82using (var connection = new TestConnection(deploymentResult.HttpClient.BaseAddress.Port))
src\Servers\IIS\IIS\test\Common.FunctionalTests\MaxRequestBodySizeTests.cs (1)
121using (var connection = new TestConnection(deploymentResult.HttpClient.BaseAddress.Port))
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestPathBaseTests.cs (1)
91"Host: " + _fixture.Client.BaseAddress.Authority,
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (4)
409var port = _fixture.Client.BaseAddress.Port; 582var request = new HttpRequestMessage(new HttpMethod(method), _fixture.Client.BaseAddress + $"SetCustomErorCode?code={code}"); 666Assert.Equal(_fixture.Client.BaseAddress.ToString(), await _fixture.Client.GetStringAsync("/ServerAddresses")); 798"Host: " + _fixture.Client.BaseAddress.Authority,
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (2)
208var connection = new TestConnection(deploymentResult.HttpClient.BaseAddress.Port); 225var statusConnection = new TestConnection(deploymentResult.HttpClient.BaseAddress.Port);
Microsoft.AspNetCore.Authentication.Test (10)
WsFederation\WsFederationTest.cs (5)
81Assert.Equal(httpClient.BaseAddress + "signin-wsfed", queryItems["wreply"]); 97Assert.Equal(httpClient.BaseAddress + "signin-wsfed", queryItems["wreply"]); 113Assert.Equal(httpClient.BaseAddress + "premapped-challenge/signin-wsfed", queryItems["wreply"]); 146var exception = await Assert.ThrowsAsync<AuthenticationFailureException>(() => httpClient.PostAsync(httpClient.BaseAddress + "signin-wsfed", form)); 156var response = await httpClient.PostAsync(httpClient.BaseAddress + "signin-wsfed", form);
WsFederation\WsFederationTest_Handler.cs (5)
79Assert.Equal(httpClient.BaseAddress + "signin-wsfed", queryItems["wreply"]); 95Assert.Equal(httpClient.BaseAddress + "signin-wsfed", queryItems["wreply"]); 111Assert.Equal(httpClient.BaseAddress + "premapped-challenge/signin-wsfed", queryItems["wreply"]); 144var exception = await Assert.ThrowsAsync<AuthenticationFailureException>(() => httpClient.PostAsync(httpClient.BaseAddress + "signin-wsfed", form)); 154var response = await httpClient.PostAsync(httpClient.BaseAddress + "signin-wsfed", form);
Microsoft.AspNetCore.Server.IntegrationTesting (2)
Common\DeploymentResult.cs (2)
38/// An <see cref="HttpClient"/> with <see cref="LoggingHandler"/> configured and the <see cref="HttpClient.BaseAddress"/> set to the <see cref="ApplicationBaseUri"/> 59/// Create an <see cref="HttpClient"/> with <see cref="LoggingHandler"/> configured and the <see cref="HttpClient.BaseAddress"/> set to the <see cref="ApplicationBaseUri"/>,
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISDeploymentResult.cs (1)
41BaseAddress = base.HttpClient.BaseAddress,
Microsoft.AspNetCore.Testing.Tests (2)
FakesExtensionsTests.cs (2)
101Assert.Equal(_urlAddresses[0], client.BaseAddress?.AbsoluteUri); 152Assert.Equal(_urlAddresses[1], client.BaseAddress?.AbsoluteUri);