165 references to IsSuccessStatusCode
Aspire.EndToEnd.Tests (1)
IntegrationServicesTests.cs (1)
36Assert.True(response.IsSuccessStatusCode, responseContent);
dotnet-openapi (1)
HttpClientWrapper.cs (1)
55public bool IsSuccessCode() => _response.IsSuccessStatusCode;
IIS.FunctionalTests (19)
Http2TrailersResetTests.cs (5)
170Assert.True(response2.IsSuccessStatusCode); 187Assert.True(response2.IsSuccessStatusCode); 238Assert.True(response.IsSuccessStatusCode); 299Assert.True(response.IsSuccessStatusCode); 323Assert.True(response.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (2)
119if (response.IsSuccessStatusCode) 139if (response.IsSuccessStatusCode)
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (1)
100Assert.False(response.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
29var response = await deploymentResult.HttpClient.RetryRequestAsync(path, r => r.IsSuccessStatusCode); 31if (response.IsSuccessStatusCode)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
68var response = await deploymentResult.HttpClient.RetryRequestAsync("HelloWorld", r => r.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (1)
213Assert.False(response.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (2)
400Assert.True(response.IsSuccessStatusCode); 403Assert.True(response2.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\IIS.Shared.FunctionalTests\StdOutRedirectionTests.cs (5)
46Assert.False(response.IsSuccessStatusCode); 70Assert.False(response.IsSuccessStatusCode); 100Assert.False(response.IsSuccessStatusCode); 127Assert.False(response.IsSuccessStatusCode); 153Assert.False(response.IsSuccessStatusCode);
IIS.LongTests (13)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
29var response = await deploymentResult.HttpClient.RetryRequestAsync(path, r => r.IsSuccessStatusCode); 31if (response.IsSuccessStatusCode)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
68var response = await deploymentResult.HttpClient.RetryRequestAsync("HelloWorld", r => r.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (10)
179Assert.False(response.IsSuccessStatusCode); 773Assert.False(result.IsSuccessStatusCode); 797Assert.False(result.IsSuccessStatusCode); 820Assert.False(result.IsSuccessStatusCode); 845Assert.False(result.IsSuccessStatusCode); 867Assert.False(result.IsSuccessStatusCode); 919Assert.True(result.IsSuccessStatusCode); 931Assert.True(result.IsSuccessStatusCode); 975Assert.True(response.IsSuccessStatusCode); 1061Assert.False(response.IsSuccessStatusCode);
IIS.NewHandler.FunctionalTests (14)
NewHandlerTests.cs (1)
29Assert.True(response.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
29var response = await deploymentResult.HttpClient.RetryRequestAsync(path, r => r.IsSuccessStatusCode); 31if (response.IsSuccessStatusCode)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
68var response = await deploymentResult.HttpClient.RetryRequestAsync("HelloWorld", r => r.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (10)
179Assert.False(response.IsSuccessStatusCode); 773Assert.False(result.IsSuccessStatusCode); 797Assert.False(result.IsSuccessStatusCode); 820Assert.False(result.IsSuccessStatusCode); 845Assert.False(result.IsSuccessStatusCode); 867Assert.False(result.IsSuccessStatusCode); 919Assert.True(result.IsSuccessStatusCode); 931Assert.True(result.IsSuccessStatusCode); 975Assert.True(response.IsSuccessStatusCode); 1061Assert.False(response.IsSuccessStatusCode);
IIS.NewShim.FunctionalTests (13)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
29var response = await deploymentResult.HttpClient.RetryRequestAsync(path, r => r.IsSuccessStatusCode); 31if (response.IsSuccessStatusCode)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
68var response = await deploymentResult.HttpClient.RetryRequestAsync("HelloWorld", r => r.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (10)
179Assert.False(response.IsSuccessStatusCode); 773Assert.False(result.IsSuccessStatusCode); 797Assert.False(result.IsSuccessStatusCode); 820Assert.False(result.IsSuccessStatusCode); 845Assert.False(result.IsSuccessStatusCode); 867Assert.False(result.IsSuccessStatusCode); 919Assert.True(result.IsSuccessStatusCode); 931Assert.True(result.IsSuccessStatusCode); 975Assert.True(response.IsSuccessStatusCode); 1061Assert.False(response.IsSuccessStatusCode);
IIS.ShadowCopy.Tests (22)
ShadowCopyTests.cs (19)
28Assert.True(response.IsSuccessStatusCode); 54Assert.True(response.IsSuccessStatusCode); 88Assert.True(response.IsSuccessStatusCode); 119Assert.True(response.IsSuccessStatusCode); 138Assert.True(response.IsSuccessStatusCode); 155Assert.True(response.IsSuccessStatusCode); 169Assert.True(response.IsSuccessStatusCode); 184Assert.True(response.IsSuccessStatusCode); 195Assert.True(response.IsSuccessStatusCode); 211Assert.True(response.IsSuccessStatusCode); 223if (!response.IsSuccessStatusCode) 234Assert.True(response.IsSuccessStatusCode); 253Assert.True(response.IsSuccessStatusCode); 265if (!response.IsSuccessStatusCode) 276Assert.True(response.IsSuccessStatusCode); 295Assert.True(response.IsSuccessStatusCode); 310Assert.True(response.IsSuccessStatusCode); 325Assert.True(response.IsSuccessStatusCode); 340Assert.True(response.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
29var response = await deploymentResult.HttpClient.RetryRequestAsync(path, r => r.IsSuccessStatusCode); 31if (response.IsSuccessStatusCode)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
68var response = await deploymentResult.HttpClient.RetryRequestAsync("HelloWorld", r => r.IsSuccessStatusCode);
IISExpress.FunctionalTests (19)
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (2)
119if (response.IsSuccessStatusCode) 139if (response.IsSuccessStatusCode)
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (1)
100Assert.False(response.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (2)
29var response = await deploymentResult.HttpClient.RetryRequestAsync(path, r => r.IsSuccessStatusCode); 31if (response.IsSuccessStatusCode)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
68var response = await deploymentResult.HttpClient.RetryRequestAsync("HelloWorld", r => r.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (1)
213Assert.False(response.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (2)
400Assert.True(response.IsSuccessStatusCode); 403Assert.True(response2.IsSuccessStatusCode);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (10)
179Assert.False(response.IsSuccessStatusCode); 773Assert.False(result.IsSuccessStatusCode); 797Assert.False(result.IsSuccessStatusCode); 820Assert.False(result.IsSuccessStatusCode); 845Assert.False(result.IsSuccessStatusCode); 867Assert.False(result.IsSuccessStatusCode); 919Assert.True(result.IsSuccessStatusCode); 931Assert.True(result.IsSuccessStatusCode); 975Assert.True(response.IsSuccessStatusCode); 1061Assert.False(response.IsSuccessStatusCode);
Interop.FunctionalTests (1)
Http3\Http3TlsTests.cs (1)
249Assert.True(response.IsSuccessStatusCode);
Microsoft.AspNetCore.Authentication.Facebook (1)
FacebookHandler.cs (1)
53if (!response.IsSuccessStatusCode)
Microsoft.AspNetCore.Authentication.Google (1)
GoogleHandler.cs (1)
51if (!response.IsSuccessStatusCode)
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
MicrosoftAccountHandler.cs (1)
47if (!response.IsSuccessStatusCode)
Microsoft.AspNetCore.Authentication.OAuth (1)
OAuthHandler.cs (1)
225return response.IsSuccessStatusCode switch
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectHandler.cs (1)
1024if (!responseMessage.IsSuccessStatusCode)
Microsoft.AspNetCore.Authentication.Twitter (3)
TwitterHandler.cs (3)
301if (!response.IsSuccessStatusCode) 326if (!response.IsSuccessStatusCode) 359if (response.IsSuccessStatusCode || !contentTypeIsJson)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (19)
Logging\AcceptanceTests.cs (13)
174Assert.True(response.IsSuccessStatusCode); 234Assert.True(response.IsSuccessStatusCode); 299Assert.True(response.IsSuccessStatusCode); 360Assert.True(response.IsSuccessStatusCode); 408Assert.True(response.IsSuccessStatusCode); 450Assert.True(response.IsSuccessStatusCode); 480Assert.True(response.IsSuccessStatusCode); 513Assert.True(firstResponse.IsSuccessStatusCode); 518Assert.True(secondResponse.IsSuccessStatusCode); 672Assert.True(response.IsSuccessStatusCode); 702Assert.True(response.IsSuccessStatusCode); 732Assert.True(response.IsSuccessStatusCode); 748Assert.True(response.IsSuccessStatusCode);
Logging\AcceptanceTests.Mvc.cs (5)
66Assert.True(response.IsSuccessStatusCode); 101Assert.True(response.IsSuccessStatusCode); 147Assert.True(response.IsSuccessStatusCode); 191Assert.True(response.IsSuccessStatusCode); 232Assert.False(response.IsSuccessStatusCode);
Logging\AcceptanceTests.Routing.cs (1)
66Assert.True(response.IsSuccessStatusCode);
Microsoft.AspNetCore.Http.Connections.Client (1)
Internal\LoggingHttpMessageHandler.cs (1)
31if (!response.IsSuccessStatusCode && response.StatusCode != HttpStatusCode.SwitchingProtocols)
Microsoft.AspNetCore.Identity.FunctionalTests (2)
MapIdentityApiTests.cs (2)
348Assert.True(refreshResponse.IsSuccessStatusCode); 354Assert.True(refreshResponse.IsSuccessStatusCode);
Microsoft.AspNetCore.Identity.Test (1)
RetryHandler.cs (1)
38if (result.IsSuccessStatusCode)
Microsoft.AspNetCore.Mvc.FunctionalTests (6)
KeyedServicesTests.cs (6)
41Assert.True(okResponse.IsSuccessStatusCode); 42Assert.True(notokResponse.IsSuccessStatusCode); 57Assert.True(response.IsSuccessStatusCode); 71Assert.True(response.IsSuccessStatusCode); 85Assert.True(response.IsSuccessStatusCode); 99Assert.False(response.IsSuccessStatusCode);
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Deployers\NginxDeployer.cs (1)
86if (!response.IsSuccessStatusCode)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (2)
LoggingHandler.cs (1)
28await LogResponse(response.IsSuccessStatusCode ? LogLevel.Debug : LogLevel.Warning, response);
RetryHandler.cs (1)
46(response.IsSuccessStatusCode || response.StatusCode != (HttpStatusCode)503))
Microsoft.AspNetCore.SpaProxy (2)
SpaProxyLaunchManager.cs (2)
82var running = response.IsSuccessStatusCode; 113var running = response.IsSuccessStatusCode;
Microsoft.AspNetCore.TestHost.Tests (1)
TestServerTests.cs (1)
226Assert.True(response.IsSuccessStatusCode);
Microsoft.AspNetCore.Tests (3)
WebApplicationTests.cs (3)
2039Assert.False(response.IsSuccessStatusCode); 2145Assert.False(response.IsSuccessStatusCode); 2170Assert.False(response.IsSuccessStatusCode);
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
Autobahn\AutobahnTester.cs (1)
89if (!resp.IsSuccessStatusCode)
Microsoft.DotNet.Build.Tasks.Feed (1)
src\common\GeneralUtils.cs (1)
152if (response.IsSuccessStatusCode)
Microsoft.DotNet.Helix.Sdk (2)
AzureDevOpsTask.cs (1)
148if (!res.IsSuccessStatusCode)
ProvisioningProfileProvider.cs (1)
201return response.IsSuccessStatusCode;
Microsoft.DotNet.VersionTools (3)
Automation\GitHubApi\GitHubClient.cs (1)
458if (!response.IsSuccessStatusCode)
Automation\VstsApi\VstsAdapterClient.cs (1)
426if (!response.IsSuccessStatusCode)
BuildInfo.cs (1)
198if (!response.IsSuccessStatusCode)
Microsoft.Extensions.Logging.AzureAppServices (1)
BlobAppendReferenceWrapper.cs (1)
64if (response.IsSuccessStatusCode ||
Microsoft.ML.Tokenizers.Data.Tests (1)
test\Microsoft.ML.Tokenizers.Tests\Utils.cs (1)
22if (response.IsSuccessStatusCode)
Microsoft.ML.Tokenizers.Tests (1)
Utils.cs (1)
22if (response.IsSuccessStatusCode)
System.Net.Http (1)
System\Net\Http\HttpResponseMessage.cs (1)
163if (!IsSuccessStatusCode)
Templates.Blazor.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
238return response.IsSuccessStatusCode || response.StatusCode == HttpStatusCode.Redirect;
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
238return response.IsSuccessStatusCode || response.StatusCode == HttpStatusCode.Redirect;
Templates.Blazor.WebAssembly.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
238return response.IsSuccessStatusCode || response.StatusCode == HttpStatusCode.Redirect;
Templates.Mvc.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
238return response.IsSuccessStatusCode || response.StatusCode == HttpStatusCode.Redirect;
Templates.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
238return response.IsSuccessStatusCode || response.StatusCode == HttpStatusCode.Redirect;