33 writes to StatusCode
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageProperty.cs (1)
324this.HttpResponseMessage.StatusCode = value;
Microsoft.Arcade.Common (2)
ArcadeHttpMessageHandler.cs (2)
26StatusCode = requestResponse.ResponseMessage.StatusCode, 33StatusCode = HttpStatusCode.InternalServerError,
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
SpaProxyTests.cs (1)
29StatusCode = HttpStatusCode.OK,
Microsoft.AspNetCore.TestHost (1)
ClientHandler.cs (1)
212response.StatusCode = (HttpStatusCode)httpContext.Response.StatusCode;
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (2)
NoRemoteCallHandler.cs (1)
39StatusCode = System.Net.HttpStatusCode.OK,
NoRemoteCallNotSeekableHandler.cs (1)
42StatusCode = System.Net.HttpStatusCode.OK,
Microsoft.Extensions.Http.Diagnostics.Tests (15)
Logging\HttpClientLoggerTest.cs (7)
55using var httpResponseMessage = new HttpResponseMessage { StatusCode = responseCode }; 195StatusCode = HttpStatusCode.OK, 289StatusCode = HttpStatusCode.OK, 395StatusCode = HttpStatusCode.OK, 491StatusCode = HttpStatusCode.OK, 605StatusCode = HttpStatusCode.OK, 875StatusCode = HttpStatusCode.OK,
Logging\HttpRequestReaderTest.cs (7)
92StatusCode = HttpStatusCode.OK, 152StatusCode = HttpStatusCode.OK, 221StatusCode = HttpStatusCode.OK, 296StatusCode = HttpStatusCode.OK, 426StatusCode = HttpStatusCode.OK, 493StatusCode = HttpStatusCode.OK, 561StatusCode = HttpStatusCode.OK,
Logging\Internal\NoRemoteCallHandler.cs (1)
33StatusCode = System.Net.HttpStatusCode.OK,
Microsoft.Extensions.Http.Polly.Tests (2)
PolicyHttpMessageHandlerTest.cs (2)
113StatusCode = System.Net.HttpStatusCode.InternalServerError, 163StatusCode = System.Net.HttpStatusCode.InternalServerError,
Microsoft.Extensions.Http.Resilience.PerformanceTests (1)
NoRemoteCallHandler.cs (1)
20StatusCode = System.Net.HttpStatusCode.OK
Microsoft.Extensions.Http.Resilience.Tests (6)
Polly\HttpCircuitBreakerStrategyOptionsTests.cs (1)
59using var response = new HttpResponseMessage { StatusCode = statusCode };
Polly\HttpClientResiliencePredicatesTests.cs (1)
55var response = new HttpResponseMessage { StatusCode = statusCode };
Polly\HttpRetryStrategyOptionsTests.cs (2)
58var response = new HttpResponseMessage { StatusCode = statusCode }; 83var response = new HttpResponseMessage { StatusCode = statusCode };
Resilience\ResilienceHandlerTest.cs (2)
112return Task.FromResult(new HttpResponseMessage { StatusCode = HttpStatusCode.Created }); 137return Task.FromResult(new HttpResponseMessage { StatusCode = HttpStatusCode.Created });
System.Net.Http (2)
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (1)
642_response.StatusCode = (HttpStatusCode)statusCode;
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (1)
1044StatusCode = (HttpStatusCode)statusCode
1823 references to StatusCode
Aspire.Dashboard.Tests (17)
Integration\FrontendBrowserTokenAuthTests.cs (2)
46Assert.Equal(HttpStatusCode.OK, response.StatusCode); 148Assert.Equal(statusCode, response.StatusCode);
Integration\FrontendOpenIdConnectAuthTests.cs (2)
43Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 88Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
Integration\OtlpCorsHttpServiceTests.cs (5)
39Assert.Equal(HttpStatusCode.NotFound, responseMessage.StatusCode); 63Assert.Equal(HttpStatusCode.NoContent, responseMessage1.StatusCode); 77Assert.Equal(HttpStatusCode.NoContent, responseMessage2.StatusCode); 104Assert.Equal(HttpStatusCode.NoContent, responseMessage.StatusCode); 132Assert.Equal(HttpStatusCode.NoContent, responseMessage.StatusCode);
Integration\OtlpHttpServiceTests.cs (6)
76Assert.Equal(HttpStatusCode.BadRequest, responseMessage.StatusCode); 120Assert.Equal(HttpStatusCode.Unauthorized, responseMessage.StatusCode); 148Assert.Equal(HttpStatusCode.Unauthorized, responseMessage.StatusCode); 210Assert.Equal(HttpStatusCode.Unauthorized, responseMessage.StatusCode); 240Assert.Equal(HttpStatusCode.UnsupportedMediaType, responseMessage.StatusCode); 267Assert.Equal(HttpStatusCode.NotFound, responseMessage.StatusCode);
Integration\ResponseCompressionTests.cs (2)
31Assert.Equal(HttpStatusCode.OK, response.StatusCode); 53Assert.Equal(HttpStatusCode.OK, response.StatusCode);
Aspire.EndToEnd.Tests (1)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
480$" due to StatusCode: {(int?)args.Outcome.Result?.StatusCode} ReasonPhrase: '{args.Outcome.Result?.ReasonPhrase}'";
Aspire.Hosting.PostgreSQL.Tests (1)
PostgresFunctionalTests.cs (1)
96Assert.Equal(HttpStatusCode.OK, response.StatusCode);
Aspire.Hosting.Redis.Tests (1)
RedisFunctionalTests.cs (1)
86Assert.Equal(HttpStatusCode.OK, response.StatusCode);
Aspire.Playground.Tests (4)
AppHostTests.cs (4)
111Assert.True(HttpStatusCode.OK == response.StatusCode, $"Endpoint '{client.BaseAddress}{path.TrimStart('/')}' for resource '{resource}' in app '{Path.GetFileNameWithoutExtension(appHostPath)}' returned status code {response.StatusCode}"); 272Assert.True(HttpStatusCode.OK == response.StatusCode, $"Endpoint '{client.BaseAddress}{path.TrimStart('/')}' for resource 'consumer' in app '{Path.GetFileNameWithoutExtension(appHostPath)}' returned status code {response.StatusCode}");
Aspire.Workload.Tests (1)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
480$" due to StatusCode: {(int?)args.Outcome.Result?.StatusCode} ReasonPhrase: '{args.Outcome.Result?.ReasonPhrase}'";
AuthSamples.FunctionalTests (41)
ClaimsTransformTests.cs (2)
29Assert.Equal(HttpStatusCode.OK, response.StatusCode); 40Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
CookiesTests.cs (5)
28Assert.Equal(HttpStatusCode.OK, response.StatusCode); 39Assert.Equal(HttpStatusCode.OK, response.StatusCode); 60Assert.Equal(HttpStatusCode.OK, response.StatusCode); 66Assert.Equal(HttpStatusCode.OK, response.StatusCode); 74Assert.Equal(HttpStatusCode.OK, response.StatusCode);
CustomAuthorizationFailureResponseTests.cs (2)
27Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode); 37Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
CustomPolicyProviderTests.cs (11)
32Assert.Equal(HttpStatusCode.OK, response.StatusCode); 43Assert.Equal(HttpStatusCode.OK, response.StatusCode); 52Assert.Equal(HttpStatusCode.OK, signIn.StatusCode); 58Assert.Equal(HttpStatusCode.OK, response.StatusCode); 68Assert.Equal(HttpStatusCode.OK, signIn.StatusCode); 74Assert.Equal(HttpStatusCode.OK, response.StatusCode); 83Assert.Equal(HttpStatusCode.OK, signIn.StatusCode); 89Assert.Equal(HttpStatusCode.OK, response.StatusCode); 99Assert.Equal(HttpStatusCode.OK, signIn.StatusCode); 105Assert.Equal(HttpStatusCode.OK, response.StatusCode); 117Assert.Equal(HttpStatusCode.OK, response.StatusCode);
DynamicSchemeTests.cs (6)
30Assert.Equal(HttpStatusCode.OK, response.StatusCode); 39Assert.Equal(HttpStatusCode.OK, response.StatusCode); 45Assert.Equal(HttpStatusCode.OK, response.StatusCode); 53Assert.Equal(HttpStatusCode.OK, response.StatusCode); 63Assert.Equal(HttpStatusCode.OK, response.StatusCode); 72Assert.Equal(HttpStatusCode.OK, response.StatusCode);
IdentityExternalClaimsTests.cs (2)
29Assert.Equal(HttpStatusCode.OK, response.StatusCode); 40Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
PathSchemeSelectionTests.cs (7)
30Assert.Equal(HttpStatusCode.OK, response.StatusCode); 41Assert.Equal(HttpStatusCode.OK, response.StatusCode); 52Assert.Equal(HttpStatusCode.OK, response.StatusCode); 64Assert.Equal(HttpStatusCode.OK, response.StatusCode); 86Assert.Equal(HttpStatusCode.OK, response.StatusCode); 92Assert.Equal(HttpStatusCode.OK, response.StatusCode); 100Assert.Equal(HttpStatusCode.OK, response.StatusCode);
StaticFilesAuthTests.cs (2)
27Assert.Equal(HttpStatusCode.OK, response.StatusCode); 38Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
TestAssert.cs (4)
69Assert.Equal(HttpStatusCode.Redirect, responseMessage.StatusCode); 75Assert.Equal(HttpStatusCode.OK, response.StatusCode); 86.Status(response.StatusCode); 107=> Assert.Equal(HttpStatusCode.OK, download.StatusCode);
ClientSample (1)
LoggingMessageHandler.cs (1)
29_logger.LogDebug("Recv: {0} {1}", (int)result.StatusCode, request.RequestUri);
Diagnostics.EFCore.FunctionalTests (13)
DatabaseErrorPageMiddlewareTest.cs (8)
46Assert.Equal(HttpStatusCode.OK, response.StatusCode); 141Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 202Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 241Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 286Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 303Assert.Equal(HttpStatusCode.NoContent, response.StatusCode); 364Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 487Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
MigrationsEndPointMiddlewareTest.cs (5)
43Assert.Equal(HttpStatusCode.OK, response.StatusCode); 128Assert.Equal(HttpStatusCode.NoContent, response.StatusCode); 164Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode); 196Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode); 225Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);
Diagnostics.FunctionalTests (13)
DatabaseErrorPageSampleTest.cs (1)
32Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
DeveloperExceptionPageSampleTest.cs (2)
33Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 49Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
ExceptionHandlerSampleTest.cs (1)
29Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
MiddlewareAnalysisSampleTest.cs (1)
29Assert.Equal(HttpStatusCode.OK, response.StatusCode);
ProblemDetailsExceptionHandlerSampleTest.cs (2)
34Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 51Assert.Equal(HttpStatusCode.Conflict, response.StatusCode);
StatusCodeSampleTest.cs (5)
34Assert.Equal(HttpStatusCode.OK, response.StatusCode); 51Assert.Equal((HttpStatusCode)httpStatusCode, response.StatusCode); 71Assert.Equal((HttpStatusCode)httpStatusCode, response.StatusCode); 89Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode); 106Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);
WelcomePageSampleTest.cs (1)
30Assert.Equal(HttpStatusCode.OK, response.StatusCode);
dotnet-openapi (1)
HttpClientWrapper.cs (1)
53public HttpStatusCode StatusCode => _response.StatusCode;
dotnet-svcutil-lib (13)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelHelpers.cs (2)
151statusDescription = response.StatusCode.ToString(); 155(int)response.StatusCode, statusDescription)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageHelper.cs (10)
319if (((int)_httpResponseMessage.StatusCode < 200 || (int)_httpResponseMessage.StatusCode >= 300) && _httpResponseMessage.StatusCode != HttpStatusCode.InternalServerError) 321if (_httpResponseMessage.StatusCode == HttpStatusCode.NotFound) 326if (_httpResponseMessage.StatusCode == HttpStatusCode.ServiceUnavailable) 331if (_httpResponseMessage.StatusCode == HttpStatusCode.UnsupportedMediaType) 344if (_httpResponseMessage.StatusCode == HttpStatusCode.GatewayTimeout) 346throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(_httpResponseMessage.StatusCode + " " + _httpResponseMessage.ReasonPhrase)); 355if (_httpResponseMessage.StatusCode == HttpStatusCode.Unauthorized) 363if (_httpResponseMessage.StatusCode == HttpStatusCode.Forbidden)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageProperty.cs (1)
319return this.HttpResponseMessage.StatusCode;
GenerateRulesMissingDocumentation (3)
Program.cs (3)
115var success = response?.StatusCode == HttpStatusCode.OK; 119Console.WriteLine($"##[warning]Failed to check '{helpLink}': {response.StatusCode}"); 120if ((int)response.StatusCode >= 500)
IIS.FunctionalTests (27)
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (1)
97Assert.Equal(HttpStatusCode.BadGateway, response.StatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (1)
201Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
53var response = await deploymentResult.HttpClient.RetryRequestAsync("HelloWorld", r => r.StatusCode == HttpStatusCode.ServiceUnavailable);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Inprocess\HttpSysRequestInfoTests.cs (1)
37Assert.Equal(HttpStatusCode.OK, response.StatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Inprocess\MaxRequestBodySizeTests.cs (6)
45Assert.Equal(HttpStatusCode.RequestEntityTooLarge, result.StatusCode); 68Assert.True(result.StatusCode == HttpStatusCode.NotFound || result.StatusCode == HttpStatusCode.RequestEntityTooLarge); 89Assert.Equal(HttpStatusCode.OK, result.StatusCode); 110Assert.Equal(HttpStatusCode.OK, result.StatusCode); 155Assert.Equal(HttpStatusCode.OK, result.StatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Latin1Tests.cs (2)
52Assert.Equal(HttpStatusCode.OK, result.StatusCode); 70Assert.Equal(HttpStatusCode.OK, result.StatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\MaxRequestBodySizeTests.cs (6)
46Assert.Equal(HttpStatusCode.RequestEntityTooLarge, result.StatusCode); 69Assert.True(result.StatusCode == HttpStatusCode.NotFound || result.StatusCode == HttpStatusCode.RequestEntityTooLarge); 90Assert.Equal(HttpStatusCode.OK, result.StatusCode); 111Assert.Equal(HttpStatusCode.OK, result.StatusCode); 156Assert.Equal(HttpStatusCode.OK, result.StatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (4)
61Assert.Equal(200, (int)result1.StatusCode); 62Assert.Equal(500, (int)result2.StatusCode); 88Assert.Equal(200, (int)result1.StatusCode); 89Assert.Equal(500, (int)result2.StatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (5)
518Assert.Equal(HttpStatusCode.OK, response.StatusCode); 527Assert.Equal(HttpStatusCode.OK, response.StatusCode); 546Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 569Assert.Equal((HttpStatusCode)code, response.StatusCode); 584Assert.Equal((HttpStatusCode)code, response.StatusCode);
IIS.LongTests (30)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
53var response = await deploymentResult.HttpClient.RetryRequestAsync("HelloWorld", r => r.StatusCode == HttpStatusCode.ServiceUnavailable);
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (10)
145Assert.Equal(500, (int)result.StatusCode); 164Assert.Equal(502, (int)result.StatusCode); 182Assert.Equal(500, (int)result.StatusCode); 278Assert.Equal(HttpStatusCode.OK, result.StatusCode); 290Assert.Equal(HttpStatusCode.OK, res.StatusCode); 315Assert.Equal(HttpStatusCode.OK, result.StatusCode); 327Assert.Equal(HttpStatusCode.OK, res.StatusCode); 413var statusCode = (int)response.StatusCode; 576var statusCode = (int)response.StatusCode; 616Assert.Equal(HttpStatusCode.BadGateway, response.StatusCode);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (19)
70Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 229Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 247Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 264Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 429Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 480Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 513Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 539Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 560Assert.Equal(HttpStatusCode.InternalServerError, result.StatusCode); 1062Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 1075Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 1094Assert.Equal(HttpStatusCode.BadGateway, response.StatusCode); 1117Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 1140Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 1385Assert.Equal(307, (int)response.StatusCode); 1390Assert.Equal(200, (int)response.StatusCode); 1507Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 1582Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 1597Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
IIS.NewHandler.FunctionalTests (30)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
53var response = await deploymentResult.HttpClient.RetryRequestAsync("HelloWorld", r => r.StatusCode == HttpStatusCode.ServiceUnavailable);
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (10)
145Assert.Equal(500, (int)result.StatusCode); 164Assert.Equal(502, (int)result.StatusCode); 182Assert.Equal(500, (int)result.StatusCode); 278Assert.Equal(HttpStatusCode.OK, result.StatusCode); 290Assert.Equal(HttpStatusCode.OK, res.StatusCode); 315Assert.Equal(HttpStatusCode.OK, result.StatusCode); 327Assert.Equal(HttpStatusCode.OK, res.StatusCode); 413var statusCode = (int)response.StatusCode; 576var statusCode = (int)response.StatusCode; 616Assert.Equal(HttpStatusCode.BadGateway, response.StatusCode);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (19)
70Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 229Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 247Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 264Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 429Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 480Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 513Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 539Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 560Assert.Equal(HttpStatusCode.InternalServerError, result.StatusCode); 1062Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 1075Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 1094Assert.Equal(HttpStatusCode.BadGateway, response.StatusCode); 1117Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 1140Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 1385Assert.Equal(307, (int)response.StatusCode); 1390Assert.Equal(200, (int)response.StatusCode); 1507Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 1582Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 1597Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
IIS.NewShim.FunctionalTests (30)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
53var response = await deploymentResult.HttpClient.RetryRequestAsync("HelloWorld", r => r.StatusCode == HttpStatusCode.ServiceUnavailable);
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (10)
145Assert.Equal(500, (int)result.StatusCode); 164Assert.Equal(502, (int)result.StatusCode); 182Assert.Equal(500, (int)result.StatusCode); 278Assert.Equal(HttpStatusCode.OK, result.StatusCode); 290Assert.Equal(HttpStatusCode.OK, res.StatusCode); 315Assert.Equal(HttpStatusCode.OK, result.StatusCode); 327Assert.Equal(HttpStatusCode.OK, res.StatusCode); 413var statusCode = (int)response.StatusCode; 576var statusCode = (int)response.StatusCode; 616Assert.Equal(HttpStatusCode.BadGateway, response.StatusCode);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (19)
70Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 229Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 247Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 264Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 429Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 480Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 513Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 539Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 560Assert.Equal(HttpStatusCode.InternalServerError, result.StatusCode); 1062Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 1075Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 1094Assert.Equal(HttpStatusCode.BadGateway, response.StatusCode); 1117Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 1140Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 1385Assert.Equal(307, (int)response.StatusCode); 1390Assert.Equal(200, (int)response.StatusCode); 1507Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 1582Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 1597Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
IIS.ShadowCopy.Tests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
53var response = await deploymentResult.HttpClient.RetryRequestAsync("HelloWorld", r => r.StatusCode == HttpStatusCode.ServiceUnavailable);
IISExpress.FunctionalTests (71)
InProcess\AuthenticationTests.cs (6)
34Assert.Equal(HttpStatusCode.OK, response.StatusCode); 39Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode); 45Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode); 52Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode); 59Assert.Equal(HttpStatusCode.OK, response.StatusCode); 64Assert.Equal(HttpStatusCode.OK, response.StatusCode);
InProcess\IISExpressShutdownTests.cs (1)
56var statusCode = (int)response.StatusCode;
OutOfProcess\MultipleAppTests.cs (1)
55Assert.Equal(HttpStatusCode.OK, response.StatusCode);
OutOfProcess\NtlmAuthentationTest.cs (7)
48Assert.Equal(HttpStatusCode.OK, response.StatusCode); 54Assert.Equal(HttpStatusCode.OK, response.StatusCode); 58Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode); 63Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode); 69Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode); 76Assert.Equal(HttpStatusCode.OK, response.StatusCode); 81Assert.Equal(HttpStatusCode.OK, response.StatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (1)
97Assert.Equal(HttpStatusCode.BadGateway, response.StatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (1)
201Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
53var response = await deploymentResult.HttpClient.RetryRequestAsync("HelloWorld", r => r.StatusCode == HttpStatusCode.ServiceUnavailable);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Inprocess\HttpSysRequestInfoTests.cs (1)
37Assert.Equal(HttpStatusCode.OK, response.StatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Inprocess\MaxRequestBodySizeTests.cs (6)
45Assert.Equal(HttpStatusCode.RequestEntityTooLarge, result.StatusCode); 68Assert.True(result.StatusCode == HttpStatusCode.NotFound || result.StatusCode == HttpStatusCode.RequestEntityTooLarge); 89Assert.Equal(HttpStatusCode.OK, result.StatusCode); 110Assert.Equal(HttpStatusCode.OK, result.StatusCode); 155Assert.Equal(HttpStatusCode.OK, result.StatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Latin1Tests.cs (2)
52Assert.Equal(HttpStatusCode.OK, result.StatusCode); 70Assert.Equal(HttpStatusCode.OK, result.StatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\MaxRequestBodySizeTests.cs (6)
46Assert.Equal(HttpStatusCode.RequestEntityTooLarge, result.StatusCode); 69Assert.True(result.StatusCode == HttpStatusCode.NotFound || result.StatusCode == HttpStatusCode.RequestEntityTooLarge); 90Assert.Equal(HttpStatusCode.OK, result.StatusCode); 111Assert.Equal(HttpStatusCode.OK, result.StatusCode); 156Assert.Equal(HttpStatusCode.OK, result.StatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (4)
61Assert.Equal(200, (int)result1.StatusCode); 62Assert.Equal(500, (int)result2.StatusCode); 88Assert.Equal(200, (int)result1.StatusCode); 89Assert.Equal(500, (int)result2.StatusCode);
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (5)
518Assert.Equal(HttpStatusCode.OK, response.StatusCode); 527Assert.Equal(HttpStatusCode.OK, response.StatusCode); 546Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 569Assert.Equal((HttpStatusCode)code, response.StatusCode); 584Assert.Equal((HttpStatusCode)code, response.StatusCode);
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (10)
145Assert.Equal(500, (int)result.StatusCode); 164Assert.Equal(502, (int)result.StatusCode); 182Assert.Equal(500, (int)result.StatusCode); 278Assert.Equal(HttpStatusCode.OK, result.StatusCode); 290Assert.Equal(HttpStatusCode.OK, res.StatusCode); 315Assert.Equal(HttpStatusCode.OK, result.StatusCode); 327Assert.Equal(HttpStatusCode.OK, res.StatusCode); 413var statusCode = (int)response.StatusCode; 576var statusCode = (int)response.StatusCode; 616Assert.Equal(HttpStatusCode.BadGateway, response.StatusCode);
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (19)
70Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 229Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 247Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 264Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 429Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 480Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 513Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 539Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 560Assert.Equal(HttpStatusCode.InternalServerError, result.StatusCode); 1062Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 1075Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 1094Assert.Equal(HttpStatusCode.BadGateway, response.StatusCode); 1117Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 1140Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 1385Assert.Equal(307, (int)response.StatusCode); 1390Assert.Equal(200, (int)response.StatusCode); 1507Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 1582Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 1597Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
installer.tasks (1)
StaticFileRegeneration\RegenerateThirdPartyNotices.cs (1)
76if (response.StatusCode != HttpStatusCode.NotFound)
Interop.FunctionalTests (2)
Http2\Http2RequestTests.cs (1)
217Assert.Equal(HttpStatusCode.BadRequest, responseMessage.StatusCode);
Http3\Http3RequestTests.cs (1)
2200Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
Microsoft.Arcade.Common (1)
ArcadeHttpMessageHandler.cs (1)
26StatusCode = requestResponse.ResponseMessage.StatusCode,
Microsoft.AspNetCore.Authentication.Facebook (1)
FacebookHandler.cs (1)
55throw new HttpRequestException($"An error occurred when retrieving Facebook user information ({response.StatusCode}). Please check if the authentication information is correct and the corresponding Facebook Graph API is enabled.");
Microsoft.AspNetCore.Authentication.Google (1)
GoogleHandler.cs (1)
53throw new HttpRequestException($"An error occurred when retrieving Google user information ({response.StatusCode}). Please check if the authentication information is correct.");
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
MicrosoftAccountHandler.cs (1)
49throw new HttpRequestException($"An error occurred when retrieving Microsoft user information ({response.StatusCode}). Please check if the authentication information is correct and the corresponding Microsoft Account API is enabled.");
Microsoft.AspNetCore.Authentication.OAuth (1)
OAuthHandler.cs (1)
238var errorMessage = $"OAuth token endpoint failure: Status: {response.StatusCode};Headers: {response.Headers};Body: {body};";
Microsoft.AspNetCore.Authentication.OpenIdConnect (4)
OpenIdConnectHandler.cs (4)
1001Logger.LogDebug($"Unexpected token response format. Status Code: {(int)responseMessage.StatusCode}. Content-Type header is missing."); 1005Logger.LogDebug($"Unexpected token response format. Status Code: {(int)responseMessage.StatusCode}. Content-Type {responseMessage.Content.Headers.ContentType}."); 1021throw new OpenIdConnectProtocolException($"Failed to parse token response body as JSON. Status Code: {(int)responseMessage.StatusCode}. Content-Type: {responseMessage.Content.Headers.ContentType}", ex); 1520Logger.ResponseErrorWithStatusCode(message.Error, description, errorUri, (int)response.StatusCode);
Microsoft.AspNetCore.Authentication.Test (323)
AuthenticationMiddlewareTests.cs (1)
57Assert.Equal(607, (int)response.StatusCode);
CertificateTests.cs (31)
58Assert.Equal(HttpStatusCode.OK, response.StatusCode); 74Assert.Equal(HttpStatusCode.OK, response.StatusCode); 89Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode); 105Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode); 121Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode); 138Assert.Equal(HttpStatusCode.OK, response.StatusCode); 155Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode); 173Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode); 190Assert.Equal(HttpStatusCode.OK, response.StatusCode); 208Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode); 225Assert.Equal(HttpStatusCode.OK, response.StatusCode); 241Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode); 258Assert.Equal(HttpStatusCode.OK, response.StatusCode); 272Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode); 286Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode); 309Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode); 327Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode); 344Assert.Equal(HttpStatusCode.OK, response.StatusCode); 362Assert.Equal(HttpStatusCode.OK, response.StatusCode); 379Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode); 397Assert.Equal(HttpStatusCode.OK, response.StatusCode); 414Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode); 433Assert.Equal(HttpStatusCode.OK, response.StatusCode); 451Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode); 466Assert.Equal(HttpStatusCode.OK, response.StatusCode); 597Assert.Equal(HttpStatusCode.OK, response.StatusCode); 627Assert.Equal(HttpStatusCode.OK, response.StatusCode); 667Assert.Equal(HttpStatusCode.OK, response.StatusCode); 724Assert.Equal(HttpStatusCode.OK, response.StatusCode); 754Assert.Equal(HttpStatusCode.OK, response.StatusCode); 776Assert.Equal(HttpStatusCode.OK, response.StatusCode);
CookieTests.cs (27)
41Assert.Equal(HttpStatusCode.OK, response.StatusCode); 50Assert.Equal(HttpStatusCode.Unauthorized, transaction.Response.StatusCode); 62Assert.Equal(HttpStatusCode.Forbidden, transaction.Response.StatusCode); 74Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 86Assert.Equal(HttpStatusCode.Unauthorized, transaction.Response.StatusCode); 100Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 1178Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 1192Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 1210Assert.Equal(HttpStatusCode.Redirect, transaction2.Response.StatusCode); 1226Assert.Equal(HttpStatusCode.Redirect, transaction2.Response.StatusCode); 1252Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 1287Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 1314Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 1342Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 1365Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 1388Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 1413Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 1436Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 1461Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 1486Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 1515Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 1538Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 1560Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 1583Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 1606Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 1628Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 1731Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
DynamicSchemeTests.cs (6)
32Assert.Equal(HttpStatusCode.OK, response.StatusCode); 44Assert.Equal(HttpStatusCode.OK, response.StatusCode); 67Assert.Equal(HttpStatusCode.OK, response.StatusCode); 73Assert.Equal(HttpStatusCode.OK, response.StatusCode); 79Assert.Equal(HttpStatusCode.OK, response.StatusCode); 86Assert.Equal(HttpStatusCode.OK, response.StatusCode);
FacebookTests.cs (12)
58Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 74Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 110Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 141Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 173Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 205Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 231Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 264Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 299Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 366Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 434Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 448Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
GoogleTests.cs (35)
55Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 86Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 99Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 112Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 125Assert.Equal(HttpStatusCode.Unauthorized, transaction.Response.StatusCode); 151Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 187Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 239Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 295Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 334Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 359Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 401Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 437Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 480Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 519Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 558Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 566Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 578Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 628Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 680Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 721Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 729Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 761Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 809Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 852Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 882Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 890Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 926Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 934Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 970Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 978Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 1007Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 1015Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 1067Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 1081Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
JwtBearerTests.cs (29)
81Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode); 119Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode); 163Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 172Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 216Assert.Equal(HttpStatusCode.Unauthorized, transaction.Response.StatusCode); 246Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode); 256Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode); 265Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode); 274Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode); 292Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode); 319Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode); 343Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode); 363Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode); 383Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode); 416Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode); 465Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode); 477Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode); 517Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode); 546Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode); 580Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode); 652Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode); 724Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode); 784Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode); 807Assert.Equal(HttpStatusCode.Forbidden, response.Response.StatusCode); 834Assert.Equal(HttpStatusCode.Forbidden, response.Response.StatusCode); 862Assert.Equal(418, (int)response.Response.StatusCode); 911Assert.Equal(418, (int)response.StatusCode); 952Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode); 996Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode);
JwtBearerTests_Handler.cs (29)
72Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode); 109Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode); 153Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 162Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 203Assert.Equal(HttpStatusCode.Unauthorized, transaction.Response.StatusCode); 232Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode); 242Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode); 251Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode); 260Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode); 275Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode); 299Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode); 320Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode); 337Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode); 354Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode); 386Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode); 434Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode); 446Assert.Equal(HttpStatusCode.Unauthorized, response.Response.StatusCode); 483Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode); 509Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode); 542Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode); 610Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode); 676Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode); 732Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode); 754Assert.Equal(HttpStatusCode.Forbidden, response.Response.StatusCode); 780Assert.Equal(HttpStatusCode.Forbidden, response.Response.StatusCode); 807Assert.Equal(418, (int)response.Response.StatusCode); 856Assert.Equal(418, (int)response.StatusCode); 896Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode); 939Assert.Equal(HttpStatusCode.OK, response.Response.StatusCode);
MicrosoftAccountTests.cs (13)
65Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 80Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 93Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 106Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 119Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 145Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 163Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 181Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 243Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 251Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 267Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 334Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 348Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
OAuthTests.cs (10)
134Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 162Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 192Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 218Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 247Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 276Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 313Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 348Assert.Equal(HttpStatusCode.NotAcceptable, transaction.Response.StatusCode); 384Assert.Equal(HttpStatusCode.NotAcceptable, transaction.Response.StatusCode); 420Assert.Equal(HttpStatusCode.NotAcceptable, transaction.Response.StatusCode);
OpenIdConnect\OpenIdConnectAuthenticateTests.cs (1)
99Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
OpenIdConnect\OpenIdConnectChallengeTests.cs (27)
36Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 69Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 104Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 125Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 164Assert.Equal(HttpStatusCode.OK, res.StatusCode); 197Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 232Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 275Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 312Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 356Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 390Assert.Equal(HttpStatusCode.Gone, res.StatusCode); 420Assert.Equal(HttpStatusCode.OK, res.StatusCode); 489Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 511Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 532Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 556Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 578Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 602Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 626Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 650Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 672Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 693Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 720Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 810Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 849Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 883Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 914Assert.Equal(HttpStatusCode.Redirect, res.StatusCode);
OpenIdConnect\OpenIdConnectConfigurationTests.cs (1)
466Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
OpenIdConnect\OpenIdConnectEventTests.cs (34)
47Assert.Equal(HttpStatusCode.OK, response.StatusCode); 93Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 115Assert.Equal(HttpStatusCode.OK, response.StatusCode); 164Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 200Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 223Assert.Equal(HttpStatusCode.OK, response.StatusCode); 274Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 304Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 328Assert.Equal(HttpStatusCode.OK, response.StatusCode); 381Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 412Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 436Assert.Equal(HttpStatusCode.OK, response.StatusCode); 489Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 520Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 545Assert.Equal(HttpStatusCode.OK, response.StatusCode); 600Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 632Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 663Assert.Equal(HttpStatusCode.OK, response.StatusCode); 730Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 778Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 800Assert.Equal(HttpStatusCode.OK, response.StatusCode); 824Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 861Assert.Equal(HttpStatusCode.OK, response.StatusCode); 895Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 921Assert.Equal(HttpStatusCode.OK, response.StatusCode); 948Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 969Assert.Equal(HttpStatusCode.Found, response.StatusCode); 996Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 1013Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1039Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 1065Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 1082Assert.Equal(HttpStatusCode.Found, response.StatusCode); 1105Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 1132Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (34)
47Assert.Equal(HttpStatusCode.OK, response.StatusCode); 93Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 115Assert.Equal(HttpStatusCode.OK, response.StatusCode); 164Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 200Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 223Assert.Equal(HttpStatusCode.OK, response.StatusCode); 274Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 304Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 328Assert.Equal(HttpStatusCode.OK, response.StatusCode); 381Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 412Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 436Assert.Equal(HttpStatusCode.OK, response.StatusCode); 489Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 520Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 545Assert.Equal(HttpStatusCode.OK, response.StatusCode); 600Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 632Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 663Assert.Equal(HttpStatusCode.OK, response.StatusCode); 730Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 778Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 800Assert.Equal(HttpStatusCode.OK, response.StatusCode); 824Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 861Assert.Equal(HttpStatusCode.OK, response.StatusCode); 895Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 921Assert.Equal(HttpStatusCode.OK, response.StatusCode); 948Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 969Assert.Equal(HttpStatusCode.Found, response.StatusCode); 996Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 1013Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1039Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 1065Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 1082Assert.Equal(HttpStatusCode.Found, response.StatusCode); 1105Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 1132Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
OpenIdConnect\OpenIdConnectTests.cs (13)
50Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 77Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 104Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 130Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 157Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 182Assert.Equal(HttpStatusCode.Redirect, res.StatusCode); 200Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 218Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 240Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 271Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 320Assert.Equal(HttpStatusCode.OK, remoteSignOutTransaction.Response.StatusCode); 344Assert.Equal(HttpStatusCode.OK, remoteSignOutTransaction.Response.StatusCode); 368Assert.Equal(HttpStatusCode.OK, remoteSignOutTransaction.Response.StatusCode);
TwitterTests.cs (16)
71Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 133Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 146Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 159Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 181Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 209Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 223Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 259Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 273Assert.Equal(HttpStatusCode.NotAcceptable, response.StatusCode); 366Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 380Assert.Equal(HttpStatusCode.NotAcceptable, response.StatusCode); 431Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 436Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 444Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode); 510Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode); 526Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
WsFederation\WsFederationTest.cs (2)
131Assert.Equal(HttpStatusCode.Found, response.StatusCode); 158Assert.Equal(HttpStatusCode.Found, response.StatusCode);
WsFederation\WsFederationTest_Handler.cs (2)
129Assert.Equal(HttpStatusCode.Found, response.StatusCode); 156Assert.Equal(HttpStatusCode.Found, response.StatusCode);
Microsoft.AspNetCore.Authentication.Twitter (2)
TwitterHandler.cs (2)
303Logger.LogError("AccessToken request failed with a status code of " + response.StatusCode); 328Logger.LogError("Email request failed with a status code of " + response.StatusCode);
Microsoft.AspNetCore.Cors.Test (3)
CorsMiddlewareTests.cs (3)
327Assert.Equal(HttpStatusCode.NoContent, response.StatusCode); 369Assert.Equal(HttpStatusCode.OK, response.StatusCode); 619Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (30)
HealthCheckEndpointRouteBuilderExtensionsTest.cs (2)
80Assert.Equal(HttpStatusCode.OK, response.StatusCode); 125Assert.Equal(HttpStatusCode.OK, response.StatusCode);
HealthCheckMiddlewareSampleTest.cs (4)
30Assert.Equal(HttpStatusCode.OK, response.StatusCode); 52Assert.Equal(HttpStatusCode.OK, response.StatusCode); 75Assert.Equal(HttpStatusCode.OK, response.StatusCode); 97Assert.Equal(HttpStatusCode.ServiceUnavailable, response.StatusCode);
HealthCheckMiddlewareTests.cs (24)
66Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 93Assert.Equal(HttpStatusCode.OK, response.StatusCode); 120Assert.Equal(HttpStatusCode.OK, response.StatusCode); 151Assert.Equal(HttpStatusCode.OK, response.StatusCode); 184Assert.Equal(HttpStatusCode.OK, response.StatusCode); 217Assert.Equal(HttpStatusCode.OK, response.StatusCode); 250Assert.Equal(HttpStatusCode.ServiceUnavailable, response.StatusCode); 283Assert.Equal(HttpStatusCode.ServiceUnavailable, response.StatusCode); 366Assert.Equal(HttpStatusCode.ServiceUnavailable, response.StatusCode); 401Assert.Equal(HttpStatusCode.Created, response.StatusCode); 430Assert.Equal(HttpStatusCode.OK, response.StatusCode); 465Assert.Equal(HttpStatusCode.OK, response.StatusCode); 504Assert.Equal(HttpStatusCode.OK, response.StatusCode); 534Assert.Equal(HttpStatusCode.OK, response.StatusCode); 564Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 592Assert.Equal(HttpStatusCode.OK, response.StatusCode); 622Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 657Assert.Equal(HttpStatusCode.OK, response.StatusCode); 694Assert.Equal(HttpStatusCode.OK, response.StatusCode); 732Assert.Equal(HttpStatusCode.OK, response.StatusCode); 770Assert.Equal(HttpStatusCode.OK, response.StatusCode); 808Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 850Assert.Equal(HttpStatusCode.OK, response.StatusCode); 894Assert.Equal(HttpStatusCode.OK, response.StatusCode);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (14)
Logging\AcceptanceTests.cs (8)
183var responseStatus = ((int)response.StatusCode).ToInvariantString(); 243var responseStatus = ((int)response.StatusCode).ToInvariantString(); 309var responseStatus = ((int)response.StatusCode).ToInvariantString(); 371var responseStatus = ((int)response.StatusCode).ToInvariantString(); 417var responseStatus = ((int)response.StatusCode).ToInvariantString(); 459var responseStatus = ((int)response.StatusCode).ToInvariantString(); 490var responseStatus = ((int)response.StatusCode).ToInvariantString(); 528var responseStatus = ((int)firstResponse.StatusCode).ToInvariantString();
Logging\AcceptanceTests.Mvc.cs (5)
77var responseStatus = ((int)response.StatusCode).ToInvariantString(); 112var responseStatus = ((int)response.StatusCode).ToInvariantString(); 158var responseStatus = ((int)response.StatusCode).ToInvariantString(); 202var responseStatus = ((int)response.StatusCode).ToInvariantString(); 243var responseStatus = ((int)response.StatusCode).ToInvariantString();
Logging\AcceptanceTests.Routing.cs (1)
77var responseStatus = ((int)response.StatusCode).ToInvariantString();
Microsoft.AspNetCore.Diagnostics.Tests (19)
DeveloperExceptionPageMiddlewareTest.cs (4)
258Assert.Equal(StatusCodes.Status500InternalServerError, (int)response.StatusCode); 293Assert.Equal(StatusCodes.Status500InternalServerError, (int)response.StatusCode); 366Assert.Equal(statusCode, (int)response.StatusCode); 607Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
ExceptionHandlerMiddlewareTest.cs (2)
339Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 406Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
ExceptionHandlerTest.cs (12)
62Assert.Equal(expectedStatusCode, response.StatusCode); 183Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 239Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 366Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 600Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 649Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 690Assert.Equal(HttpStatusCode.Conflict, response.StatusCode); 729Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 770Assert.Equal(HttpStatusCode.OK, response.StatusCode); 985Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 1029Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 1099Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
StatusCodeMiddlewareTest.cs (1)
62Assert.Equal(HttpStatusCode.Found, response.StatusCode);
Microsoft.AspNetCore.HeaderPropagation.Tests (4)
HeaderPropagationIntegrationTest.cs (4)
67Assert.Equal(HttpStatusCode.OK, response.StatusCode); 116Assert.Equal(HttpStatusCode.OK, response.StatusCode); 143Assert.Equal(HttpStatusCode.OK, response.StatusCode); 189Assert.Equal(HttpStatusCode.OK, response.StatusCode);
Microsoft.AspNetCore.HostFiltering.Tests (6)
HostFilteringMiddlewareTests.cs (6)
75Assert.Equal(status, (int)response.StatusCode); 118Assert.Equal(status, (int)response.StatusCode); 169Assert.Equal(200, (int)response.StatusCode); 221Assert.Equal(400, (int)response.StatusCode); 260Assert.Equal(400, (int)response.StatusCode); 265Assert.Equal(200, (int)response.StatusCode);
Microsoft.AspNetCore.Http.Connections.Client (7)
Internal\AccessTokenHttpMessageHandler.cs (2)
42if (shouldRetry && result.StatusCode is HttpStatusCode.Unauthorized) 44HttpConnection.Log.RetryAccessToken(_httpConnection._logger, result.StatusCode);
Internal\LoggingHttpMessageHandler.cs (2)
31if (!response.IsSuccessStatusCode && response.StatusCode != HttpStatusCode.SwitchingProtocols) 33Log.UnsuccessfulHttpResponse(_logger, response.StatusCode, request.Method, request.RequestUri!);
Internal\LongPollingTransport.cs (2)
181if (response.StatusCode == HttpStatusCode.NoContent || cancellationToken.IsCancellationRequested) 237if (response.StatusCode == HttpStatusCode.NotFound)
Internal\LongPollingTransport.Log.cs (1)
48PollResponseReceived(logger, (int)response.StatusCode,
Microsoft.AspNetCore.HttpsPolicy.Tests (14)
HstsMiddlewareTests.cs (8)
70Assert.Equal(HttpStatusCode.OK, response.StatusCode); 116Assert.Equal(HttpStatusCode.OK, response.StatusCode); 162Assert.Equal(HttpStatusCode.OK, response.StatusCode); 207Assert.Equal(HttpStatusCode.OK, response.StatusCode); 262Assert.Equal(HttpStatusCode.OK, response.StatusCode); 317Assert.Equal(HttpStatusCode.OK, response.StatusCode); 364Assert.Equal(HttpStatusCode.OK, response.StatusCode); 410Assert.Equal(HttpStatusCode.OK, response.StatusCode);
HttpsPolicyTests.cs (1)
69Assert.Equal(statusCode, (int)response.StatusCode);
HttpsRedirectionMiddlewareTests.cs (5)
55Assert.Equal(HttpStatusCode.OK, response.StatusCode); 110Assert.Equal(statusCode, (int)response.StatusCode); 166Assert.Equal(statusCode, (int)response.StatusCode); 402Assert.Equal(200, (int)response.StatusCode); 446Assert.Equal(200, (int)response.StatusCode);
Microsoft.AspNetCore.Identity.FunctionalTests (12)
Extensions\ResponseAssert.cs (4)
17Assert.Equal(HttpStatusCode.Redirect, responseMessage.StatusCode); 23Assert.Equal(HttpStatusCode.OK, response.StatusCode); 34.Status(response.StatusCode); 56Assert.Equal(HttpStatusCode.OK, download.StatusCode);
ManagementTests.cs (1)
346Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
MapIdentityApiTests.cs (6)
1425Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1430Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1436Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode); 1442Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode); 1448Assert.Equal(status, response.StatusCode); 1458Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);
NoIdentityAddedTests.cs (1)
34Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
Microsoft.AspNetCore.Identity.InMemory.Test (19)
FunctionalTest.cs (19)
42Assert.Equal(HttpStatusCode.OK, transaction1.Response.StatusCode); 52Assert.Equal(HttpStatusCode.OK, transaction1.Response.StatusCode); 56Assert.Equal(HttpStatusCode.OK, transaction2.Response.StatusCode); 87Assert.Equal(HttpStatusCode.OK, transaction1.Response.StatusCode); 91Assert.Equal(HttpStatusCode.OK, transaction2.Response.StatusCode); 126Assert.Equal(HttpStatusCode.OK, transaction1.Response.StatusCode); 130Assert.Equal(HttpStatusCode.OK, transaction2.Response.StatusCode); 185Assert.Equal(HttpStatusCode.OK, transaction1.Response.StatusCode); 189Assert.Equal(HttpStatusCode.OK, transaction2.Response.StatusCode); 225Assert.Equal(HttpStatusCode.OK, transaction1.Response.StatusCode); 229Assert.Equal(HttpStatusCode.OK, transaction2.Response.StatusCode); 236Assert.Equal(HttpStatusCode.OK, transaction3.Response.StatusCode); 242Assert.Equal(HttpStatusCode.OK, transaction4.Response.StatusCode); 254Assert.Equal(HttpStatusCode.OK, transaction1.Response.StatusCode); 258Assert.Equal(HttpStatusCode.OK, transaction2.Response.StatusCode); 265Assert.Equal(HttpStatusCode.OK, transaction3.Response.StatusCode); 268Assert.Equal(HttpStatusCode.OK, transaction4.Response.StatusCode); 272Assert.Equal(HttpStatusCode.OK, transaction5.Response.StatusCode); 278Assert.Equal(HttpStatusCode.InternalServerError, transaction6.Response.StatusCode);
Microsoft.AspNetCore.Identity.Test (1)
RetryHandler.cs (1)
44_output.WriteLine($"Request '{method} - {url}' failed with {result.StatusCode}.");
Microsoft.AspNetCore.Localization.FunctionalTests (2)
LocalizationSampleTest.cs (1)
40Assert.Equal(HttpStatusCode.OK, response.StatusCode);
LocalizationTest.cs (1)
117Assert.Equal(HttpStatusCode.OK, response.StatusCode);
Microsoft.AspNetCore.Localization.Routing.Tests (3)
RouteDataRequestCultureProviderTest.cs (3)
86Assert.Equal(HttpStatusCode.OK, response.StatusCode); 132Assert.Equal(HttpStatusCode.OK, response.StatusCode); 208Assert.Equal(HttpStatusCode.OK, response.StatusCode);
Microsoft.AspNetCore.Mvc.FunctionalTests (618)
AntiforgeryAuthTests.cs (4)
38Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 50Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 61Assert.Equal(HttpStatusCode.OK, response.StatusCode); 71Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);
AntiforgeryMiddlewareTest.cs (2)
92Assert.Equal(HttpStatusCode.BadRequest, result.StatusCode); 167Assert.Equal(HttpStatusCode.BadRequest, result.StatusCode);
AntiforgeryTests.cs (7)
37Assert.Equal(HttpStatusCode.OK, response.StatusCode); 82Assert.Equal(HttpStatusCode.OK, response.StatusCode); 132Assert.Equal(HttpStatusCode.OK, response.StatusCode); 161Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode); 171Assert.Equal(HttpStatusCode.OK, response.StatusCode); 196Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode); 209Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
ApiExplorerTest.cs (2)
1189Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1195Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
ApplicationModelTest.cs (11)
37Assert.Equal(HttpStatusCode.OK, response.StatusCode); 50Assert.Equal(HttpStatusCode.OK, response.StatusCode); 63Assert.Equal(HttpStatusCode.OK, response.StatusCode); 76Assert.Equal(HttpStatusCode.OK, response.StatusCode); 89Assert.Equal(HttpStatusCode.OK, response.StatusCode); 102Assert.Equal(HttpStatusCode.OK, response.StatusCode); 115Assert.Equal(HttpStatusCode.OK, response.StatusCode); 133Assert.Equal(HttpStatusCode.OK, response.StatusCode); 146Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 189Assert.Equal(HttpStatusCode.OK, response.StatusCode); 202Assert.Equal(HttpStatusCode.OK, response.StatusCode);
AsyncActionsTests.cs (12)
38Assert.Equal(HttpStatusCode.OK, response.StatusCode); 50Assert.Equal(HttpStatusCode.OK, response.StatusCode); 73Assert.Equal(HttpStatusCode.OK, response.StatusCode); 96Assert.Equal(HttpStatusCode.OK, response.StatusCode); 119Assert.Equal(HttpStatusCode.OK, response.StatusCode); 142Assert.Equal(HttpStatusCode.OK, response.StatusCode); 165Assert.Equal(HttpStatusCode.OK, response.StatusCode); 188Assert.Equal(HttpStatusCode.OK, response.StatusCode); 211Assert.Equal(HttpStatusCode.OK, response.StatusCode); 234Assert.Equal(HttpStatusCode.OK, response.StatusCode); 257Assert.Equal(HttpStatusCode.OK, response.StatusCode); 280Assert.Equal(HttpStatusCode.OK, response.StatusCode);
AsyncDisposalTest.cs (3)
48Assert.Equal(HttpStatusCode.OK, response.StatusCode); 60Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 72Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
AuthMiddlewareAndFilterTestBase.cs (11)
132Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode); 139Assert.Equal(HttpStatusCode.OK, response.StatusCode); 147Assert.Equal(HttpStatusCode.OK, response.StatusCode); 151Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode); 158Assert.Equal(HttpStatusCode.OK, response.StatusCode); 173Assert.Equal(HttpStatusCode.OK, response.StatusCode); 181Assert.Equal(HttpStatusCode.OK, response.StatusCode); 192Assert.Equal(HttpStatusCode.OK, response.StatusCode); 207Assert.Equal(HttpStatusCode.OK, response.StatusCode); 212Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode); 220Assert.Equal(HttpStatusCode.OK, response.StatusCode);
BasicTests.cs (19)
55Assert.Equal(HttpStatusCode.OK, response.StatusCode); 75Assert.Equal(HttpStatusCode.OK, response.StatusCode); 99Assert.Equal(HttpStatusCode.OK, response.StatusCode); 119Assert.Equal(HttpStatusCode.OK, response.StatusCode); 138Assert.Equal(HttpStatusCode.OK, response.StatusCode); 151Assert.Equal(HttpStatusCode.NoContent, response.StatusCode); 164Assert.Equal(HttpStatusCode.OK, response.StatusCode); 179Assert.Equal(HttpStatusCode.OK, result.StatusCode); 193Assert.Equal(HttpStatusCode.Found, response.StatusCode); 211Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode); 229Assert.Equal(HttpStatusCode.OK, response.StatusCode); 245Assert.Equal(HttpStatusCode.OK, response.StatusCode); 268Assert.Equal(HttpStatusCode.OK, response.StatusCode); 291Assert.Equal(HttpStatusCode.OK, response.StatusCode); 341Assert.Equal(HttpStatusCode.OK, response.StatusCode); 353Assert.Equal(HttpStatusCode.OK, response.StatusCode); 365Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 407Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 424Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);
ComponentRenderingFunctionalTests.cs (1)
105Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
ConsumesAttributeEndpointRoutingTests.cs (1)
18Assert.Equal(HttpStatusCode.OK, response.StatusCode);
ConsumesAttributeTests.cs (1)
18Assert.Equal(HttpStatusCode.OK, response.StatusCode);
ConsumesAttributeTestsBase.cs (8)
56Assert.Equal(HttpStatusCode.OK, response.StatusCode); 73Assert.Equal(HttpStatusCode.OK, response.StatusCode); 89Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 109Assert.Equal(HttpStatusCode.OK, response.StatusCode); 131Assert.Equal(HttpStatusCode.OK, response.StatusCode); 156Assert.Equal(HttpStatusCode.OK, response.StatusCode); 175Assert.Equal(HttpStatusCode.OK, response.StatusCode); 198Assert.Equal(HttpStatusCode.OK, response.StatusCode);
ContentNegotiationTest.cs (15)
116Assert.Equal(HttpStatusCode.OK, response.StatusCode); 135Assert.Equal(HttpStatusCode.OK, response.StatusCode); 160Assert.Equal(HttpStatusCode.OK, response.StatusCode); 178Assert.Equal(HttpStatusCode.OK, response.StatusCode); 191Assert.Equal(HttpStatusCode.NotAcceptable, response.StatusCode); 219Assert.Equal(HttpStatusCode.OK, response.StatusCode); 374Assert.Equal(HttpStatusCode.OK, response.StatusCode); 392Assert.Equal(HttpStatusCode.OK, response.StatusCode); 412Assert.Equal(HttpStatusCode.NotAcceptable, response.StatusCode); 427Assert.Equal(HttpStatusCode.NotAcceptable, response.StatusCode); 442Assert.Equal(HttpStatusCode.NotAcceptable, response.StatusCode); 456Assert.Equal(HttpStatusCode.NotAcceptable, response.StatusCode); 468Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 479Assert.Equal(HttpStatusCode.OK, response.StatusCode); 534Assert.Equal(HttpStatusCode.OK, response.StatusCode);
ControllerEndpointFiltersTest.cs (4)
44Assert.Equal(HttpStatusCode.OK, response.StatusCode); 57Assert.Equal(HttpStatusCode.OK, response.StatusCode); 70Assert.Equal(HttpStatusCode.OK, response.StatusCode); 82Assert.Equal(HttpStatusCode.OK, response.StatusCode);
ControllerFromServicesTests.cs (1)
115Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
CorsTests.cs (1)
24Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
CorsTestsBase.cs (14)
51Assert.Equal(HttpStatusCode.OK, response.StatusCode); 70Assert.Equal(HttpStatusCode.OK, response.StatusCode); 88Assert.Equal(HttpStatusCode.OK, response.StatusCode); 106Assert.Equal(HttpStatusCode.MethodNotAllowed, response.StatusCode); 131Assert.Equal(HttpStatusCode.NoContent, response.StatusCode); 166Assert.Equal(HttpStatusCode.OK, response.StatusCode); 199Assert.Equal(HttpStatusCode.NoContent, response.StatusCode); 232Assert.Equal(HttpStatusCode.OK, response.StatusCode); 256Assert.Equal(HttpStatusCode.OK, response.StatusCode); 285Assert.Equal(HttpStatusCode.NoContent, response.StatusCode); 309Assert.Equal(HttpStatusCode.NoContent, response.StatusCode); 341Assert.Equal(HttpStatusCode.NoContent, response.StatusCode); 380Assert.Equal(HttpStatusCode.NoContent, response.StatusCode); 403Assert.Equal(HttpStatusCode.NoContent, response.StatusCode);
CustomValueProviderTest.cs (4)
50Assert.Equal(HttpStatusCode.OK, response.StatusCode); 67Assert.Equal(HttpStatusCode.OK, response.StatusCode); 84Assert.Equal(HttpStatusCode.OK, response.StatusCode); 101Assert.Equal(HttpStatusCode.OK, response.StatusCode);
DataAnnotationTests.cs (1)
47Assert.Equal(HttpStatusCode.OK, response.StatusCode);
DoNotRespectBrowserAcceptHeaderTests.cs (4)
50Assert.Equal(HttpStatusCode.OK, response.StatusCode); 78Assert.Equal(HttpStatusCode.OK, response.StatusCode); 107Assert.Equal(HttpStatusCode.OK, response.StatusCode); 138Assert.Equal(HttpStatusCode.OK, response.StatusCode);
ErrorPageTests.cs (5)
66Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 101Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 122Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 142Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 160Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
FileResultTests.cs (39)
42Assert.Equal(HttpStatusCode.OK, response.StatusCode); 66Assert.Equal(HttpStatusCode.PartialContent, response.StatusCode); 88Assert.Equal(HttpStatusCode.OK, response.StatusCode); 108Assert.Equal(HttpStatusCode.RequestedRangeNotSatisfiable, response.StatusCode); 130Assert.Equal(HttpStatusCode.PartialContent, response.StatusCode); 152Assert.Equal(HttpStatusCode.OK, response.StatusCode); 172Assert.Equal(HttpStatusCode.RequestedRangeNotSatisfiable, response.StatusCode); 189Assert.Equal(HttpStatusCode.OK, response.StatusCode); 216Assert.Equal(HttpStatusCode.OK, response.StatusCode); 235Assert.Equal(HttpStatusCode.PartialContent, response.StatusCode); 255Assert.Equal(HttpStatusCode.OK, response.StatusCode); 287Assert.Equal(httpStatusCode, (int)response.StatusCode); 312Assert.Equal(HttpStatusCode.OK, response.StatusCode); 329Assert.Equal(HttpStatusCode.OK, response.StatusCode); 357Assert.Equal(HttpStatusCode.PartialContent, response.StatusCode); 375Assert.Equal(HttpStatusCode.OK, response.StatusCode); 396Assert.Equal(HttpStatusCode.RequestedRangeNotSatisfiable, response.StatusCode); 410Assert.Equal(HttpStatusCode.OK, response.StatusCode); 437Assert.Equal(HttpStatusCode.OK, response.StatusCode); 460Assert.Equal(HttpStatusCode.PartialContent, response.StatusCode); 477Assert.Equal(HttpStatusCode.OK, response.StatusCode); 506Assert.Equal(httpStatusCode, (int)response.StatusCode); 530Assert.Equal(HttpStatusCode.OK, response.StatusCode); 558Assert.Equal(HttpStatusCode.PartialContent, response.StatusCode); 576Assert.Equal(HttpStatusCode.OK, response.StatusCode); 600Assert.Equal(HttpStatusCode.RequestedRangeNotSatisfiable, response.StatusCode); 614Assert.Equal(HttpStatusCode.OK, response.StatusCode); 641Assert.Equal(HttpStatusCode.OK, response.StatusCode); 664Assert.Equal(HttpStatusCode.PartialContent, response.StatusCode); 680Assert.Equal(HttpStatusCode.OK, response.StatusCode); 712Assert.Equal(httpStatusCode, (int)response.StatusCode); 739Assert.Equal(HttpStatusCode.OK, response.StatusCode); 767Assert.Equal(HttpStatusCode.PartialContent, response.StatusCode); 791Assert.Equal(HttpStatusCode.OK, response.StatusCode); 810Assert.Equal(HttpStatusCode.PartialContent, response.StatusCode); 833Assert.Equal(HttpStatusCode.OK, response.StatusCode); 857Assert.Equal(HttpStatusCode.OK, response.StatusCode); 880Assert.Equal(HttpStatusCode.RequestedRangeNotSatisfiable, response.StatusCode); 916Assert.Equal(httpStatusCode, (int)response.StatusCode);
FiltersTest.cs (6)
39Assert.Equal(HttpStatusCode.OK, response.StatusCode); 50Assert.Equal(HttpStatusCode.OK, response.StatusCode); 61Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode); 76Assert.Equal(HttpStatusCode.OK, response.StatusCode); 96Assert.Equal(422, (int)response.StatusCode); 123Assert.Equal(HttpStatusCode.OK, response.StatusCode);
FormFileUploadTest.cs (2)
46Assert.Equal(HttpStatusCode.OK, response.StatusCode); 74Assert.Equal(HttpStatusCode.OK, response.StatusCode);
GlobalAuthorizationFilterTestBase.cs (4)
41Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 55Assert.Equal(HttpStatusCode.OK, response.StatusCode); 67Assert.Equal(HttpStatusCode.OK, response.StatusCode); 79Assert.Equal(HttpStatusCode.OK, response.StatusCode);
HtmlGenerationTest.cs (5)
113Assert.Equal(HttpStatusCode.OK, response.StatusCode); 230Assert.Equal(HttpStatusCode.OK, response.StatusCode); 270Assert.Equal(HttpStatusCode.OK, response.StatusCode); 309Assert.Equal(HttpStatusCode.OK, response.StatusCode); 340Assert.Equal(HttpStatusCode.OK, response.StatusCode);
Infrastructure\HttpClientExtensions.cs (3)
37if (response.StatusCode == expectedStatusCode) 52throw EqualException.ForMismatchedValues(expectedStatusCode, response.StatusCode, $"Expected status code {expectedStatusCode}. Actual {response.StatusCode}. Response Content:" + Environment.NewLine + responseContent);
InputFormatterTests.cs (3)
51Assert.Equal(HttpStatusCode.OK, response.StatusCode); 68Assert.Equal(HttpStatusCode.OK, response.StatusCode); 84Assert.Equal(HttpStatusCode.UnsupportedMediaType, response.StatusCode);
InputObjectValidationTests.cs (9)
81Assert.Equal(HttpStatusCode.OK, response.StatusCode); 103Assert.Equal(HttpStatusCode.OK, response.StatusCode); 124Assert.Equal(HttpStatusCode.OK, response.StatusCode); 144Assert.Equal(StatusCodes.Status400BadRequest, (int)response.StatusCode); 172Assert.Equal(expectedStatusCode, (int)response.StatusCode); 195Assert.Equal(HttpStatusCode.OK, response.StatusCode); 214Assert.Equal(expected: StatusCodes.Status400BadRequest, actual: (int)response.StatusCode); 234Assert.Equal(expected: StatusCodes.Status400BadRequest, actual: (int)response.StatusCode); 255Assert.Equal(expected: StatusCodes.Status400BadRequest, actual: (int)response.StatusCode);
InputParentValidationTests.cs (2)
54Assert.Equal(StatusCodes.Status400BadRequest, (int)response.StatusCode); 73Assert.Equal(StatusCodes.Status400BadRequest, (int)response.StatusCode);
InputValidationTests.cs (2)
69Assert.Equal(HttpStatusCode.OK, response.StatusCode); 94Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);
JsonInputFormatterTestBase.cs (8)
53Assert.Equal(HttpStatusCode.OK, response.StatusCode); 73Assert.Equal(HttpStatusCode.OK, response.StatusCode); 91Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode); 107Assert.Equal(HttpStatusCode.OK, response.StatusCode); 127Assert.Equal(HttpStatusCode.OK, response.StatusCode); 144Assert.Equal(HttpStatusCode.OK, response.StatusCode); 210Assert.Equal(HttpStatusCode.UnsupportedMediaType, response.StatusCode); 232Assert.Equal(HttpStatusCode.OK, response.StatusCode);
JsonOutputFormatterTestBase.cs (1)
59Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);
JsonPatchInputFormatterTest.cs (7)
44Assert.Equal(HttpStatusCode.OK, response.StatusCode); 64Assert.Equal(HttpStatusCode.OK, response.StatusCode); 84Assert.Equal(HttpStatusCode.OK, response.StatusCode); 105Assert.Equal(HttpStatusCode.OK, response.StatusCode); 126Assert.Equal(HttpStatusCode.OK, response.StatusCode); 146Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode); 160Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);
JsonResultWithNewtonsoftJsonTest.cs (6)
50Assert.Equal(HttpStatusCode.OK, response.StatusCode); 72Assert.Equal(HttpStatusCode.OK, response.StatusCode); 90Assert.Equal(HttpStatusCode.OK, response.StatusCode); 108Assert.Equal(HttpStatusCode.OK, response.StatusCode); 125Assert.Equal(HttpStatusCode.OK, response.StatusCode); 141Assert.Equal(HttpStatusCode.OK, response.StatusCode);
JsonResultWithSystemTextJsonTest.cs (6)
50Assert.Equal(HttpStatusCode.OK, response.StatusCode); 72Assert.Equal(HttpStatusCode.OK, response.StatusCode); 90Assert.Equal(HttpStatusCode.OK, response.StatusCode); 108Assert.Equal(HttpStatusCode.OK, response.StatusCode); 125Assert.Equal(HttpStatusCode.OK, response.StatusCode); 141Assert.Equal(HttpStatusCode.OK, response.StatusCode);
LinkGenerationTests.cs (2)
65Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 87Assert.Equal(HttpStatusCode.OK, response.StatusCode);
LinkGeneratorTest.cs (18)
45Assert.Equal(HttpStatusCode.OK, response.StatusCode); 57Assert.Equal(HttpStatusCode.OK, response.StatusCode); 69Assert.Equal(HttpStatusCode.OK, response.StatusCode); 81Assert.Equal(HttpStatusCode.OK, response.StatusCode); 93Assert.Equal(HttpStatusCode.OK, response.StatusCode); 105Assert.Equal(HttpStatusCode.OK, response.StatusCode); 119Assert.Equal(HttpStatusCode.OK, response.StatusCode); 131Assert.Equal(HttpStatusCode.OK, response.StatusCode); 143Assert.Equal(HttpStatusCode.OK, response.StatusCode); 155Assert.Equal(HttpStatusCode.OK, response.StatusCode); 167Assert.Equal(HttpStatusCode.OK, response.StatusCode); 179Assert.Equal(HttpStatusCode.OK, response.StatusCode); 191Assert.Equal(HttpStatusCode.OK, response.StatusCode); 203Assert.Equal(HttpStatusCode.OK, response.StatusCode); 215Assert.Equal(HttpStatusCode.OK, response.StatusCode); 227Assert.Equal(HttpStatusCode.OK, response.StatusCode); 239Assert.Equal(HttpStatusCode.OK, response.StatusCode); 251Assert.Equal(HttpStatusCode.OK, response.StatusCode);
LinkParserTest.cs (2)
45Assert.Equal(HttpStatusCode.OK, response.StatusCode); 75Assert.Equal(HttpStatusCode.OK, response.StatusCode);
NewtonsoftJsonInputFormatterTest.cs (3)
23Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode); 41Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode); 58Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);
OutputFormatterTest.cs (3)
79Assert.Equal(HttpStatusCode.OK, response.StatusCode); 97Assert.Equal(HttpStatusCode.NoContent, response.StatusCode); 117Assert.Equal(HttpStatusCode.NotAcceptable, response.StatusCode);
PageAsyncDisposalTest.cs (1)
46Assert.Equal(HttpStatusCode.OK, response.StatusCode);
RazorBuildTest.cs (3)
60Assert.Equal(HttpStatusCode.OK, response.StatusCode); 85Assert.Equal(HttpStatusCode.OK, response.StatusCode); 98Assert.Equal(HttpStatusCode.OK, response.StatusCode);
RazorPageModelTest.cs (7)
54Assert.Equal(HttpStatusCode.OK, response.StatusCode); 79Assert.Equal(HttpStatusCode.OK, response.StatusCode); 104Assert.Equal(HttpStatusCode.OK, response.StatusCode); 130Assert.Equal(HttpStatusCode.OK, response.StatusCode); 155Assert.Equal(HttpStatusCode.OK, response.StatusCode); 180Assert.Equal(HttpStatusCode.OK, response.StatusCode); 190Assert.Equal(HttpStatusCode.OK, getResponse.StatusCode);
RazorPagesTest.cs (54)
55Assert.Equal(HttpStatusCode.OK, response.StatusCode); 109Assert.Equal(HttpStatusCode.OK, response.StatusCode); 140Assert.Equal(HttpStatusCode.OK, response.StatusCode); 222Assert.Equal(HttpStatusCode.OK, response.StatusCode); 253Assert.Equal(HttpStatusCode.OK, response.StatusCode); 278Assert.Equal(HttpStatusCode.NotFound, routeResponse.StatusCode); 291Assert.Equal(HttpStatusCode.OK, routeResponse.StatusCode); 325Assert.Equal(HttpStatusCode.OK, response.StatusCode); 339Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 352Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode); 368Assert.Equal(HttpStatusCode.OK, response.StatusCode); 384Assert.Equal(HttpStatusCode.OK, response.StatusCode); 400Assert.Equal(HttpStatusCode.OK, response.StatusCode); 424Assert.Equal(HttpStatusCode.OK, response.StatusCode); 443Assert.Equal(HttpStatusCode.OK, response.StatusCode); 472Assert.Equal(HttpStatusCode.OK, response.StatusCode); 488Assert.Equal(HttpStatusCode.OK, response.StatusCode); 505Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 530Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 555Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 563Assert.Equal(HttpStatusCode.OK, response.StatusCode); 588Assert.Equal(HttpStatusCode.OK, response.StatusCode); 601Assert.Equal(HttpStatusCode.OK, response.StatusCode); 617Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 631Assert.Equal(HttpStatusCode.OK, response.StatusCode); 685Assert.Equal(HttpStatusCode.OK, response.StatusCode); 713Assert.Equal(HttpStatusCode.OK, response.StatusCode); 740Assert.Equal(HttpStatusCode.OK, response.StatusCode); 771Assert.Equal(HttpStatusCode.OK, response.StatusCode); 856Assert.Equal(HttpStatusCode.OK, response.StatusCode); 880Assert.Equal(HttpStatusCode.OK, response.StatusCode); 896Assert.Equal(HttpStatusCode.OK, response.StatusCode); 912Assert.Equal(HttpStatusCode.OK, response.StatusCode); 929Assert.Equal(HttpStatusCode.OK, response.StatusCode); 960Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 974Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 996Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 1010Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 1024Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 1038Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 1052Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 1064Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 1076Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 1088Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 1102Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 1114Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 1213Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 1224Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 1251Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1387Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 1461Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1477Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1493Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1502Assert.Equal(HttpStatusCode.OK, getResponse.StatusCode);
RazorPagesWithBasePathTest.cs (22)
38Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 48Assert.Equal(HttpStatusCode.OK, response.StatusCode); 61Assert.Equal(HttpStatusCode.OK, response.StatusCode); 74Assert.Equal(HttpStatusCode.OK, response.StatusCode); 87Assert.Equal(HttpStatusCode.OK, response.StatusCode); 100Assert.Equal(HttpStatusCode.OK, response.StatusCode); 113Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 124Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 259Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 273Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 392Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 419Assert.Equal(HttpStatusCode.OK, response.StatusCode); 448Assert.Equal(HttpStatusCode.OK, response.StatusCode); 477Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 505Assert.Equal(HttpStatusCode.OK, response.StatusCode); 622Assert.Equal(HttpStatusCode.OK, response.StatusCode); 635Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode); 649Assert.Equal(HttpStatusCode.OK, response.StatusCode); 663Assert.Equal(HttpStatusCode.OK, response.StatusCode); 726Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 737Assert.Equal(HttpStatusCode.Redirect, response.StatusCode); 756Assert.Equal(HttpStatusCode.OK, response.StatusCode);
RemoteAttributeValidationTest.cs (3)
48Assert.Equal(HttpStatusCode.OK, response.StatusCode); 73Assert.Equal(HttpStatusCode.OK, response.StatusCode); 102Assert.Equal(HttpStatusCode.OK, response.StatusCode);
RequestFormLimitsTest.cs (4)
74Assert.Equal(HttpStatusCode.OK, response.StatusCode); 100Assert.Equal(HttpStatusCode.OK, response.StatusCode); 123Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 170Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);
RequestServicesEndpointRoutingTest.cs (1)
18Assert.Equal(HttpStatusCode.OK, response.StatusCode);
RequestServicesTest.cs (1)
18Assert.Equal(HttpStatusCode.OK, response.StatusCode);
RequestServicesTestBase.cs (1)
109Assert.Equal(HttpStatusCode.NotFound, response2.StatusCode);
RequestSizeLimitTest.cs (3)
51Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 73Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode); 90Assert.Equal(HttpStatusCode.OK, response.StatusCode);
RespectBrowserAcceptHeaderTests.cs (2)
50Assert.Equal(HttpStatusCode.OK, response.StatusCode); 69Assert.Equal(HttpStatusCode.OK, response.StatusCode);
RoutingAcrossPipelineBranchesTest.cs (12)
57Assert.Equal(HttpStatusCode.OK, subdirResponse.StatusCode); 61Assert.Equal(HttpStatusCode.OK, commonResponse.StatusCode); 65Assert.Equal(HttpStatusCode.OK, defaultResponse.StatusCode); 92Assert.Equal(HttpStatusCode.OK, subdirResponse.StatusCode); 95Assert.Equal(HttpStatusCode.OK, commonResponse.StatusCode); 98Assert.Equal(HttpStatusCode.OK, defaultResponse.StatusCode); 122Assert.Equal(HttpStatusCode.OK, subdirResponse.StatusCode); 130Assert.Equal(HttpStatusCode.OK, defaultResponse.StatusCode); 152Assert.Equal(HttpStatusCode.NotFound, commonResponse.StatusCode); 153Assert.Equal(HttpStatusCode.NotFound, subdirResponse.StatusCode); 154Assert.Equal(HttpStatusCode.NotFound, defaultResponse.StatusCode); 170Assert.Equal(HttpStatusCode.OK, response.StatusCode);
RoutingDynamicOrderTest.cs (6)
51Assert.Equal(HttpStatusCode.OK, response.StatusCode); 73Assert.Equal(HttpStatusCode.OK, response.StatusCode); 96Assert.Equal(HttpStatusCode.OK, response.StatusCode); 118Assert.Equal(HttpStatusCode.OK, response.StatusCode); 140Assert.Equal(HttpStatusCode.OK, response.StatusCode); 162Assert.Equal(HttpStatusCode.OK, response.StatusCode);
RoutingDynamicTest.cs (7)
47Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 62Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 77Assert.Equal(HttpStatusCode.OK, response.StatusCode); 92Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 107Assert.Equal(HttpStatusCode.OK, response.StatusCode); 123Assert.Equal(HttpStatusCode.OK, response.StatusCode); 139Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
RoutingEndpointRoutingTest.cs (27)
19Assert.Equal(HttpStatusCode.OK, response.StatusCode); 40Assert.Equal(HttpStatusCode.OK, response.StatusCode); 56Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 66Assert.Equal(HttpStatusCode.OK, response.StatusCode); 82Assert.Equal(HttpStatusCode.OK, response.StatusCode); 98Assert.Equal(HttpStatusCode.OK, response.StatusCode); 114Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 127Assert.Equal(HttpStatusCode.OK, response.StatusCode); 147Assert.Equal(HttpStatusCode.OK, response.StatusCode); 167Assert.Equal(HttpStatusCode.OK, response.StatusCode); 187Assert.Equal(HttpStatusCode.OK, response.StatusCode); 204Assert.Equal(HttpStatusCode.OK, response.StatusCode); 219Assert.Equal(HttpStatusCode.OK, response.StatusCode); 236Assert.Equal(HttpStatusCode.OK, response.StatusCode); 254Assert.Equal(HttpStatusCode.MethodNotAllowed, response.StatusCode); 264Assert.Equal(HttpStatusCode.OK, response.StatusCode); 279Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 289Assert.Equal(HttpStatusCode.OK, response.StatusCode); 304Assert.Equal(HttpStatusCode.OK, response.StatusCode); 324Assert.Equal(HttpStatusCode.OK, response.StatusCode); 343Assert.Equal(HttpStatusCode.OK, response.StatusCode); 362Assert.Equal(HttpStatusCode.OK, response.StatusCode); 380Assert.Equal(HttpStatusCode.OK, response.StatusCode); 395Assert.Equal(HttpStatusCode.OK, response.StatusCode); 410Assert.Equal(HttpStatusCode.OK, response.StatusCode); 425Assert.Equal(HttpStatusCode.OK, response.StatusCode); 434Assert.Equal(HttpStatusCode.MethodNotAllowed, response.StatusCode);
RoutingFallbackTest.cs (7)
48Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 63Assert.Equal(HttpStatusCode.OK, response.StatusCode); 79Assert.Equal(HttpStatusCode.OK, response.StatusCode); 95Assert.Equal(HttpStatusCode.OK, response.StatusCode); 111Assert.Equal(HttpStatusCode.OK, response.StatusCode); 127Assert.Equal(HttpStatusCode.OK, response.StatusCode); 145Assert.Equal(HttpStatusCode.UnsupportedMediaType, response.StatusCode);
RoutingGroupsTest.cs (2)
45Assert.Equal(HttpStatusCode.OK, response.StatusCode); 56Assert.Equal(HttpStatusCode.OK, response.StatusCode);
RoutingGroupsWithMetadataTest.cs (1)
42Assert.Equal(HttpStatusCode.OK, response.StatusCode);
RoutingTests.cs (4)
20Assert.Equal(HttpStatusCode.OK, response.StatusCode); 39Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 49Assert.Equal(HttpStatusCode.OK, response.StatusCode); 71Assert.Equal(HttpStatusCode.OK, response.StatusCode);
RoutingTestsBase.cs (67)
47Assert.Equal(HttpStatusCode.OK, response.StatusCode); 65Assert.Equal(HttpStatusCode.OK, response.StatusCode); 81Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 91Assert.Equal(HttpStatusCode.OK, response.StatusCode); 114Assert.Equal(HttpStatusCode.OK, response.StatusCode); 134Assert.Equal(HttpStatusCode.OK, response.StatusCode); 173Assert.Equal(HttpStatusCode.OK, response.StatusCode); 220Assert.Equal(HttpStatusCode.OK, response.StatusCode); 230Assert.Equal(HttpStatusCode.OK, response.StatusCode); 240Assert.Equal(HttpStatusCode.OK, response.StatusCode); 252Assert.Equal(HttpStatusCode.OK, response.StatusCode); 264Assert.Equal(HttpStatusCode.OK, response.StatusCode); 288Assert.Equal(HttpStatusCode.OK, response.StatusCode); 312Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 322Assert.Equal(HttpStatusCode.OK, response.StatusCode); 347Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 359Assert.Equal(HttpStatusCode.OK, response.StatusCode); 374Assert.Equal(HttpStatusCode.OK, response.StatusCode); 407Assert.Equal(HttpStatusCode.OK, response.StatusCode); 472Assert.Equal(HttpStatusCode.OK, response.StatusCode); 499Assert.Equal(HttpStatusCode.OK, response.StatusCode); 525Assert.Equal(HttpStatusCode.MethodNotAllowed, response.StatusCode); 541Assert.Equal(HttpStatusCode.OK, response.StatusCode); 569Assert.Equal(HttpStatusCode.OK, response.StatusCode); 623Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 635Assert.Equal(HttpStatusCode.OK, response.StatusCode); 652Assert.Equal(HttpStatusCode.OK, response.StatusCode); 682Assert.Equal(HttpStatusCode.OK, response.StatusCode); 709Assert.Equal(HttpStatusCode.OK, response.StatusCode); 734Assert.Equal(HttpStatusCode.OK, response.StatusCode); 754Assert.Equal(HttpStatusCode.OK, response.StatusCode); 777Assert.Equal(HttpStatusCode.OK, response.StatusCode); 799Assert.Equal(HttpStatusCode.OK, response.StatusCode); 824Assert.Equal(HttpStatusCode.OK, response.StatusCode); 844Assert.Equal(HttpStatusCode.OK, response.StatusCode); 867Assert.Equal(HttpStatusCode.OK, response.StatusCode); 888Assert.Equal(HttpStatusCode.OK, response.StatusCode); 909Assert.Equal(HttpStatusCode.OK, response.StatusCode); 930Assert.Equal(HttpStatusCode.OK, response.StatusCode); 986Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1006Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1026Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1046Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1070Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1088Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1110Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1128Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1150Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1171Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1192Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1214Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1236Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1258Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1280Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1300Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1321Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1342Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1362Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1383Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1404Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1425Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1446Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1467Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1492Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1544Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1561Assert.Equal(HttpStatusCode.OK, response.StatusCode); 1603Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
RoutingWithoutRazorPagesTestsBase.cs (2)
43Assert.Equal(HttpStatusCode.OK, response.StatusCode); 64Assert.Equal(HttpStatusCode.OK, response.StatusCode);
SerializableErrorTests.cs (4)
58Assert.Equal(HttpStatusCode.OK, response.StatusCode); 82Assert.Equal(HttpStatusCode.OK, response.StatusCode); 128Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode); 169Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);
TagHelperComponentTagHelperTest.cs (3)
47Assert.Equal(HttpStatusCode.OK, response.StatusCode); 67Assert.Equal(HttpStatusCode.OK, response.StatusCode); 87Assert.Equal(HttpStatusCode.OK, response.StatusCode);
TagHelpersTest.cs (7)
61Assert.Equal(HttpStatusCode.OK, response.StatusCode); 98Assert.Equal(HttpStatusCode.OK, response.StatusCode); 119Assert.Equal(HttpStatusCode.OK, response.StatusCode); 216Assert.Equal(HttpStatusCode.OK, response.StatusCode); 244Assert.Equal(HttpStatusCode.OK, response.StatusCode); 272Assert.Equal(HttpStatusCode.OK, response.StatusCode); 295Assert.Equal(HttpStatusCode.OK, response.StatusCode);
TempDataInCookiesTest.cs (7)
68Assert.Equal(HttpStatusCode.OK, response.StatusCode); 92Assert.Equal(HttpStatusCode.OK, response.StatusCode); 110Assert.Equal(HttpStatusCode.NoContent, response.StatusCode); 127Assert.Equal(HttpStatusCode.OK, response.StatusCode); 142Assert.Equal(HttpStatusCode.Redirect, redirectResponse.StatusCode); 148Assert.Equal(HttpStatusCode.OK, response.StatusCode); 180Assert.Equal(HttpStatusCode.OK, response.StatusCode);
TempDataInCookiesUsingCookieConsentTest.cs (5)
52Assert.Equal(HttpStatusCode.OK, response.StatusCode); 58Assert.Equal(HttpStatusCode.OK, response.StatusCode); 66Assert.Equal(HttpStatusCode.NoContent, response.StatusCode); 83Assert.Equal(HttpStatusCode.OK, response.StatusCode); 89Assert.Equal(HttpStatusCode.NoContent, response.StatusCode);
TempDataPropertyTest.cs (7)
76Assert.Equal(HttpStatusCode.Redirect, redirectResponse.StatusCode); 82Assert.Equal(HttpStatusCode.OK, response.StatusCode); 105Assert.Equal(HttpStatusCode.OK, response.StatusCode); 111Assert.Equal(HttpStatusCode.OK, response.StatusCode); 119Assert.Equal(HttpStatusCode.OK, response.StatusCode); 142Assert.Equal(HttpStatusCode.OK, response.StatusCode); 148Assert.Equal(HttpStatusCode.OK, response.StatusCode);
TempDataTestBase.cs (19)
49Assert.Equal(HttpStatusCode.OK, response.StatusCode); 55Assert.Equal(HttpStatusCode.OK, response.StatusCode); 63Assert.Equal(HttpStatusCode.NoContent, response.StatusCode); 80Assert.Equal(HttpStatusCode.OK, response.StatusCode); 99Assert.Equal(HttpStatusCode.OK, response.StatusCode); 105Assert.Equal(HttpStatusCode.Redirect, redirectResponse.StatusCode); 111Assert.Equal(HttpStatusCode.OK, response.StatusCode); 130Assert.Equal(HttpStatusCode.OK, response.StatusCode); 136Assert.Equal(HttpStatusCode.OK, peekResponse.StatusCode); 144Assert.Equal(HttpStatusCode.OK, getResponse.StatusCode); 170Assert.Equal(HttpStatusCode.Redirect, redirectResponse.StatusCode); 176Assert.Equal(HttpStatusCode.OK, response.StatusCode); 209Assert.Equal(HttpStatusCode.OK, response.StatusCode); 215Assert.Equal(HttpStatusCode.OK, response.StatusCode); 223Assert.Equal(HttpStatusCode.NoContent, response.StatusCode); 233Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 241Assert.Equal(HttpStatusCode.NoContent, response.StatusCode); 251Assert.Equal(HttpStatusCode.OK, response.StatusCode); 259Assert.Equal(HttpStatusCode.NoContent, response.StatusCode);
TestingInfrastructureTests.cs (10)
64Assert.Equal(HttpStatusCode.OK, response.StatusCode); 87Assert.Equal(HttpStatusCode.OK, response.StatusCode); 106Assert.Equal(HttpStatusCode.OK, response.StatusCode); 122Assert.Equal(HttpStatusCode.SeeOther, response.StatusCode); 136Assert.Equal(HttpStatusCode.OK, response.StatusCode); 149Assert.Equal(HttpStatusCode.OK, response.StatusCode); 158Assert.Equal(HttpStatusCode.OK, acquireToken.StatusCode); 165Assert.Equal(HttpStatusCode.OK, response.StatusCode); 178Assert.Equal(HttpStatusCode.OK, response.StatusCode); 241Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode);
VersioningEndpointRoutingTests.cs (3)
19Assert.Equal(HttpStatusCode.OK, response.StatusCode); 39Assert.Equal(HttpStatusCode.OK, response.StatusCode); 59Assert.Equal(HttpStatusCode.OK, response.StatusCode);
VersioningTests.cs (1)
18Assert.Equal(HttpStatusCode.OK, response.StatusCode);
VersioningTestsBase.cs (24)
51Assert.Equal(HttpStatusCode.OK, response.StatusCode); 75Assert.Equal(HttpStatusCode.OK, response.StatusCode); 95Assert.Equal(HttpStatusCode.OK, response.StatusCode); 116Assert.Equal(HttpStatusCode.OK, response.StatusCode); 135Assert.Equal(HttpStatusCode.OK, response.StatusCode); 154Assert.Equal(HttpStatusCode.OK, response.StatusCode); 181Assert.Equal(HttpStatusCode.OK, response.StatusCode); 205Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 230Assert.Equal(HttpStatusCode.OK, response.StatusCode); 256Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 275Assert.Equal(HttpStatusCode.OK, response.StatusCode); 297Assert.Equal(HttpStatusCode.OK, response.StatusCode); 318Assert.Equal(HttpStatusCode.OK, response.StatusCode); 339Assert.Equal(HttpStatusCode.OK, response.StatusCode); 361Assert.Equal(HttpStatusCode.OK, response.StatusCode); 382Assert.Equal(HttpStatusCode.OK, response.StatusCode); 401Assert.Equal(HttpStatusCode.OK, response.StatusCode); 423Assert.Equal(HttpStatusCode.OK, response.StatusCode); 444Assert.Equal(HttpStatusCode.OK, response.StatusCode); 465Assert.Equal(HttpStatusCode.OK, response.StatusCode); 489Assert.Equal(HttpStatusCode.OK, response.StatusCode); 508Assert.Equal(HttpStatusCode.OK, response.StatusCode); 527Assert.Equal(HttpStatusCode.OK, response.StatusCode); 549Assert.Equal(HttpStatusCode.OK, response.StatusCode);
XmlDataContractSerializerFormattersWrappingTest.cs (8)
51Assert.Equal(HttpStatusCode.OK, response.StatusCode); 75Assert.Equal(HttpStatusCode.OK, response.StatusCode); 99Assert.Equal(HttpStatusCode.OK, response.StatusCode); 122Assert.Equal(HttpStatusCode.OK, response.StatusCode); 145Assert.Equal(HttpStatusCode.OK, response.StatusCode); 170Assert.Equal(HttpStatusCode.OK, response.StatusCode); 193Assert.Equal(HttpStatusCode.OK, response.StatusCode); 214Assert.Equal(HttpStatusCode.OK, response.StatusCode);
XmlDataContractSerializerInputFormatterTest.cs (1)
46Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);
XmlOutputFormatterTests.cs (10)
49Assert.Equal(HttpStatusCode.OK, response.StatusCode); 71Assert.Equal(HttpStatusCode.OK, response.StatusCode); 94Assert.Equal(HttpStatusCode.OK, response.StatusCode); 115Assert.Equal(HttpStatusCode.OK, response.StatusCode); 138Assert.Equal(HttpStatusCode.OK, response.StatusCode); 159Assert.Equal(HttpStatusCode.NotAcceptable, response.StatusCode); 177Assert.Equal(HttpStatusCode.OK, response.StatusCode); 197Assert.Equal(HttpStatusCode.OK, response.StatusCode); 217Assert.Equal(HttpStatusCode.OK, response.StatusCode); 238Assert.Equal(HttpStatusCode.OK, response.StatusCode);
XmlSerializerFormattersWrappingTest.cs (8)
50Assert.Equal(HttpStatusCode.OK, response.StatusCode); 71Assert.Equal(HttpStatusCode.OK, response.StatusCode); 92Assert.Equal(HttpStatusCode.OK, response.StatusCode); 112Assert.Equal(HttpStatusCode.OK, response.StatusCode); 132Assert.Equal(HttpStatusCode.OK, response.StatusCode); 154Assert.Equal(HttpStatusCode.OK, response.StatusCode); 174Assert.Equal(HttpStatusCode.OK, response.StatusCode); 192Assert.Equal(HttpStatusCode.OK, response.StatusCode);
XmlSerializerInputFormatterTests.cs (2)
47Assert.Equal(HttpStatusCode.OK, response.StatusCode); 64Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);
Microsoft.AspNetCore.Mvc.Testing (7)
Handlers\RedirectHandler.cs (7)
168response.StatusCode == HttpStatusCode.RedirectKeepVerb || 169(int)response.StatusCode == 308; 172response.StatusCode == HttpStatusCode.MovedPermanently || 173response.StatusCode == HttpStatusCode.Redirect || 174response.StatusCode == HttpStatusCode.RedirectMethod || 175response.StatusCode == HttpStatusCode.RedirectKeepVerb || 176(int)response.StatusCode == 308;
Microsoft.AspNetCore.OutputCaching.Tests (3)
OutputCacheTests.cs (3)
599Assert.Equal(System.Net.HttpStatusCode.GatewayTimeout, subsequentResponse.StatusCode); 715Assert.Equal(System.Net.HttpStatusCode.NotModified, subsequentResponse.StatusCode); 764Assert.Equal(System.Net.HttpStatusCode.NotModified, subsequentResponse.StatusCode);
Microsoft.AspNetCore.ResponseCaching.Tests (3)
ResponseCachingTests.cs (3)
537Assert.Equal(System.Net.HttpStatusCode.GatewayTimeout, subsequentResponse.StatusCode); 662Assert.Equal(System.Net.HttpStatusCode.NotModified, subsequentResponse.StatusCode); 715Assert.Equal(System.Net.HttpStatusCode.NotModified, subsequentResponse.StatusCode);
Microsoft.AspNetCore.Rewrite.Tests (15)
ApacheModRewrite\ModRewriteMiddlewareTest.cs (2)
352Assert.Equal((HttpStatusCode)301, response.StatusCode); 380Assert.Equal(HttpStatusCode.MovedPermanently, response.StatusCode);
IISUrlRewrite\MiddleWareTests.cs (1)
695Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode);
MiddlewareTests.cs (12)
257Assert.Equal(statusCode, (int)response.StatusCode); 384Assert.Equal(StatusCodes.Status301MovedPermanently, (int)response.StatusCode); 411Assert.Equal(StatusCodes.Status301MovedPermanently, (int)response.StatusCode); 440Assert.Equal(statusCode, (int)response.StatusCode); 469Assert.Equal(StatusCodes.Status307TemporaryRedirect, (int)response.StatusCode); 494Assert.Equal(StatusCodes.Status308PermanentRedirect, (int)response.StatusCode); 557Assert.Equal(statusCode, (int)response.StatusCode); 586Assert.Equal(StatusCodes.Status307TemporaryRedirect, (int)response.StatusCode); 611Assert.Equal(StatusCodes.Status308PermanentRedirect, (int)response.StatusCode); 784Assert.Equal(StatusCodes.Status307TemporaryRedirect, (int)response.StatusCode); 809Assert.Equal(StatusCodes.Status308PermanentRedirect, (int)response.StatusCode); 838Assert.Equal(statusCode, (int)response.StatusCode);
Microsoft.AspNetCore.Routing.FunctionalTests (40)
Benchmarks\EndpointRoutingBenchmarkTest.cs (1)
49Assert.Equal(HttpStatusCode.OK, response.StatusCode);
Benchmarks\RouterBenchmarkTest.cs (1)
50Assert.Equal(HttpStatusCode.OK, response.StatusCode);
EndpointRoutingIntegrationTest.cs (2)
90Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 183Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
EndpointRoutingSampleTest.cs (13)
42Assert.Equal(HttpStatusCode.OK, response.StatusCode); 56Assert.Equal(HttpStatusCode.OK, response.StatusCode); 73Assert.Equal(HttpStatusCode.OK, response.StatusCode); 92Assert.Equal(HttpStatusCode.OK, response.StatusCode); 110Assert.Equal(HttpStatusCode.OK, response.StatusCode); 123Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 136Assert.Equal(HttpStatusCode.OK, response.StatusCode); 152Assert.Equal(HttpStatusCode.OK, response.StatusCode); 165Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 179Assert.Equal(HttpStatusCode.OK, response.StatusCode); 197Assert.Equal(HttpStatusCode.OK, response.StatusCode); 210Assert.Equal(HttpStatusCode.OK, response.StatusCode); 223Assert.Equal(HttpStatusCode.OK, response.StatusCode);
HostMatchingTests.cs (5)
40Assert.Equal(HttpStatusCode.OK, response.StatusCode); 58Assert.Equal(HttpStatusCode.OK, response.StatusCode); 76Assert.Equal(HttpStatusCode.OK, response.StatusCode); 94Assert.Equal(HttpStatusCode.OK, response.StatusCode); 112Assert.Equal(HttpStatusCode.OK, response.StatusCode);
MapFallbackTest.cs (5)
32Assert.Equal(HttpStatusCode.OK, response.StatusCode); 48Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 66Assert.Equal(HttpStatusCode.OK, response.StatusCode); 82Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 100Assert.Equal(HttpStatusCode.OK, response.StatusCode);
MinimalFormTests.cs (5)
170Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode); 548Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode); 652Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode); 698Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode); 725Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);
RouteHandlerTest.cs (1)
98Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
RouterSampleTest.cs (4)
40Assert.Equal(HttpStatusCode.OK, response.StatusCode); 54Assert.Equal(HttpStatusCode.OK, response.StatusCode); 68Assert.Equal(HttpStatusCode.OK, response.StatusCode); 90Assert.Equal(HttpStatusCode.OK, response.StatusCode);
ShortCircuitTests.cs (2)
91Assert.Equal(HttpStatusCode.NotFound, response1.StatusCode); 95Assert.Equal(HttpStatusCode.NotFound, response2.StatusCode);
WebHostBuilderExtensionsTest.cs (1)
100Assert.Equal(HttpStatusCode.OK, response.StatusCode);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (71)
AuthenticationTests.cs (18)
39Assert.Equal(HttpStatusCode.OK, response.StatusCode); 57Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode); 79Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode); 105Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode); 141Assert.Equal(HttpStatusCode.OK, response.StatusCode); 162Assert.Equal(HttpStatusCode.OK, response.StatusCode); 188Assert.Equal(HttpStatusCode.OK, response.StatusCode); 214Assert.Equal(HttpStatusCode.OK, response.StatusCode); 237Assert.Equal(HttpStatusCode.OK, response.StatusCode); 259Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode); 282Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode); 300Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode); 326Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode); 344Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode); 365Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode); 399Assert.Equal(HttpStatusCode.OK, response.StatusCode); 426Assert.Equal(HttpStatusCode.OK, response.StatusCode); 453Assert.Equal(HttpStatusCode.OK, response.StatusCode);
Listener\AuthenticationOnExistingQueueTests.cs (6)
69Assert.Equal(HttpStatusCode.OK, response.StatusCode); 87Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode); 111Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode); 136Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode); 167Assert.Equal(HttpStatusCode.OK, response.StatusCode); 190Assert.Equal(HttpStatusCode.OK, response.StatusCode);
Listener\ResponseBodyTests.cs (5)
43Assert.Equal(200, (int)response.StatusCode); 68Assert.Equal(200, (int)response.StatusCode); 92Assert.Equal(200, (int)response.StatusCode); 117Assert.Equal(200, (int)response.StatusCode); 139Assert.Equal(200, (int)response.StatusCode);
OpaqueUpgradeTests.cs (3)
40Assert.Equal(200, (int)response.StatusCode); 68Assert.Equal(200, (int)response.StatusCode); 99Assert.Equal(200, (int)response.StatusCode);
ResponseBodyTests.cs (13)
33Assert.Equal(200, (int)response.StatusCode); 62Assert.Equal(200, (int)response.StatusCode); 83Assert.Equal(200, (int)response.StatusCode); 102Assert.Equal(200, (int)response.StatusCode); 120Assert.Equal(200, (int)response.StatusCode); 152Assert.Equal(200, (int)response.StatusCode); 177Assert.Equal(200, (int)response.StatusCode); 199Assert.Equal(200, (int)response.StatusCode); 223Assert.Equal(200, (int)response.StatusCode); 303Assert.Equal(200, (int)response.StatusCode); 334Assert.Equal(200, (int)response.StatusCode); 362Assert.Equal(200, (int)response.StatusCode); 389Assert.Equal(200, (int)response.StatusCode);
ResponseCachingTests.cs (2)
474Assert.Equal(status, (int)response.StatusCode); 489Assert.Equal(200, (int)response.StatusCode);
ResponseSendFileTests.cs (14)
56Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 72Assert.Equal(200, (int)response.StatusCode); 91Assert.Equal(200, (int)response.StatusCode); 110Assert.Equal(200, (int)response.StatusCode); 130Assert.Equal(200, (int)response.StatusCode); 149Assert.Equal(200, (int)response.StatusCode); 206Assert.Equal(200, (int)response.StatusCode); 226Assert.Equal(200, (int)response.StatusCode); 247Assert.Equal(200, (int)response.StatusCode); 268Assert.Equal(200, (int)response.StatusCode); 295Assert.Equal(200, (int)response.StatusCode); 321Assert.Equal(200, (int)response.StatusCode); 345Assert.Equal(200, (int)response.StatusCode); 363Assert.Equal(200, (int)response.StatusCode);
ResponseTests.cs (9)
34Assert.Equal(200, (int)response.StatusCode); 53Assert.Equal(201, (int)response.StatusCode); 73Assert.Equal(201, (int)response.StatusCode); 91Assert.Equal(901, (int)response.StatusCode); 108Assert.Equal(500, (int)response.StatusCode); 123Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 151Assert.Equal(HttpStatusCode.OK, response.StatusCode); 180Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 210Assert.Equal(HttpStatusCode.OK, response.StatusCode);
ServerTests.cs (1)
374Assert.Equal(HttpStatusCode.ServiceUnavailable, response.StatusCode);
Microsoft.AspNetCore.Server.IISIntegration.Tests (5)
IISMiddlewareTests.cs (5)
95Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode); 141Assert.Equal(HttpStatusCode.Accepted, response.StatusCode); 200Assert.Equal(HttpStatusCode.OK, response.StatusCode); 245Assert.Equal(HttpStatusCode.OK, response.StatusCode); 290Assert.Equal(HttpStatusCode.OK, response.StatusCode);
Microsoft.AspNetCore.Server.IntegrationTesting (2)
Common\LoggingHandler.cs (1)
24_logger.LogDebug("Received {statusCode} {reasonPhrase} {url}", response.StatusCode, response.ReasonPhrase, request.RequestUri);
Common\RetryHelper.cs (1)
38if (response.StatusCode == HttpStatusCode.ServiceUnavailable)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
RetryHandler.cs (1)
46(response.IsSuccessStatusCode || response.StatusCode != (HttpStatusCode)503))
Microsoft.AspNetCore.SignalR.Client.Tests (3)
LongPollingTransportTests.cs (1)
749Assert.Equal(HttpStatusCode.OK, response.StatusCode);
SendUtilsTests.cs (1)
47Assert.Equal(HttpStatusCode.OK, response.StatusCode);
ServerSentEventsTransportTests.cs (1)
438Assert.Equal(HttpStatusCode.OK, response.StatusCode);
Microsoft.AspNetCore.SpaServices.Extensions (2)
Proxying\SpaProxy.cs (2)
93if (responseMessage.StatusCode == HttpStatusCode.NotFound) 167context.Response.StatusCode = (int)responseMessage.StatusCode;
Microsoft.AspNetCore.StaticAssets.Tests (30)
StaticAssetsIntegrationTests.cs (30)
63Assert.Equal(HttpStatusCode.OK, response.StatusCode); 113Assert.Equal(HttpStatusCode.OK, response.StatusCode); 165Assert.Equal(HttpStatusCode.OK, response.StatusCode); 228Assert.Equal(HttpStatusCode.OK, response.StatusCode); 285Assert.Equal(HttpStatusCode.OK, response.StatusCode); 334Assert.Equal(HttpStatusCode.OK, response.StatusCode); 387Assert.Equal(HttpStatusCode.OK, response.StatusCode); 443Assert.Equal(HttpStatusCode.OK, response.StatusCode); 624Assert.Equal(HttpStatusCode.OK, response.StatusCode); 654Assert.Equal(HttpStatusCode.PreconditionFailed, resp.StatusCode); 667Assert.Equal(HttpStatusCode.OK, resp.StatusCode); 678Assert.Equal(HttpStatusCode.OK, resp.StatusCode); 689Assert.Equal(HttpStatusCode.MethodNotAllowed, resp.StatusCode); 716Assert.Equal(HttpStatusCode.NotModified, resp2.StatusCode); 729Assert.Equal(HttpStatusCode.NotModified, resp2.StatusCode); 742Assert.Equal(HttpStatusCode.MethodNotAllowed, resp2.StatusCode); 791Assert.Equal(HttpStatusCode.NotModified, resp2.StatusCode); 808Assert.Equal(HttpStatusCode.OK, resp2.StatusCode); 814Assert.Equal(HttpStatusCode.OK, resp3.StatusCode); 844Assert.Equal(HttpStatusCode.OK, resp2.StatusCode); 845Assert.Equal(HttpStatusCode.OK, resp3.StatusCode); 846Assert.Equal(HttpStatusCode.OK, resp4.StatusCode); 871Assert.Equal(HttpStatusCode.OK, res.StatusCode); 884Assert.Equal(HttpStatusCode.OK, res.StatusCode); 907Assert.Equal(HttpStatusCode.NotModified, res2.StatusCode); 931Assert.Equal(HttpStatusCode.NotModified, res2.StatusCode); 948Assert.Equal(HttpStatusCode.OK, res2.StatusCode); 961Assert.Equal(HttpStatusCode.OK, res.StatusCode); 973Assert.Equal(HttpStatusCode.OK, res.StatusCode); 989Assert.Equal(HttpStatusCode.PreconditionFailed, res2.StatusCode);
Microsoft.AspNetCore.StaticFiles.FunctionalTests (8)
FallbackStaticFileTest.cs (4)
62Assert.Equal(HttpStatusCode.OK, response.StatusCode); 68Assert.Equal(HttpStatusCode.OK, response.StatusCode); 111Assert.Equal(HttpStatusCode.OK, response.StatusCode); 117Assert.Equal(HttpStatusCode.OK, response.StatusCode);
StaticFileMiddlewareTests.cs (4)
40Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 85Assert.Equal(HttpStatusCode.OK, response.StatusCode); 162Assert.Equal(HttpStatusCode.OK, response.StatusCode); 204Assert.Equal(HttpStatusCode.OK, response.StatusCode);
Microsoft.AspNetCore.StaticFiles.Tests (74)
CacheHeaderTests.cs (21)
53Assert.Equal(HttpStatusCode.PreconditionFailed, resp.StatusCode); 67Assert.Equal(HttpStatusCode.OK, resp.StatusCode); 79Assert.Equal(HttpStatusCode.OK, resp.StatusCode); 91Assert.Equal(HttpStatusCode.NotFound, resp.StatusCode); 119Assert.Equal(HttpStatusCode.NotModified, resp2.StatusCode); 133Assert.Equal(HttpStatusCode.NotModified, resp2.StatusCode); 147Assert.Equal(HttpStatusCode.NotFound, resp2.StatusCode); 200Assert.Equal(HttpStatusCode.NotModified, resp2.StatusCode); 219Assert.Equal(HttpStatusCode.OK, resp2.StatusCode); 226Assert.Equal(HttpStatusCode.OK, resp3.StatusCode); 261Assert.Equal(HttpStatusCode.OK, resp2.StatusCode); 262Assert.Equal(HttpStatusCode.OK, resp3.StatusCode); 263Assert.Equal(HttpStatusCode.OK, resp4.StatusCode); 290Assert.Equal(HttpStatusCode.OK, res.StatusCode); 305Assert.Equal(HttpStatusCode.OK, res.StatusCode); 331Assert.Equal(HttpStatusCode.NotModified, res2.StatusCode); 358Assert.Equal(HttpStatusCode.NotModified, res2.StatusCode); 378Assert.Equal(HttpStatusCode.OK, res2.StatusCode); 393Assert.Equal(HttpStatusCode.OK, res.StatusCode); 408Assert.Equal(HttpStatusCode.OK, res.StatusCode); 427Assert.Equal(HttpStatusCode.PreconditionFailed, res2.StatusCode);
DefaultFilesMiddlewareTests.cs (7)
27Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 75Assert.Equal(HttpStatusCode.OK, response.StatusCode); 118Assert.Equal(HttpStatusCode.OK, response.StatusCode); 160Assert.Equal(HttpStatusCode.OK, response.StatusCode); 224Assert.Equal(HttpStatusCode.OK, response.StatusCode); 265Assert.Equal(HttpStatusCode.Moved, response.StatusCode); 321Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); // Passed through
DirectoryBrowserMiddlewareTests.cs (8)
48Assert.Equal(HttpStatusCode.OK, response.StatusCode); 93Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 133Assert.Equal(HttpStatusCode.NotAcceptable, response.StatusCode); 170Assert.Equal(HttpStatusCode.OK, response.StatusCode); 227Assert.Equal(HttpStatusCode.OK, response.StatusCode); 271Assert.Equal(HttpStatusCode.Moved, response.StatusCode); 321Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 370Assert.Equal(HttpStatusCode.OK, response.StatusCode);
RangeHeaderTests.cs (24)
27Assert.Equal(HttpStatusCode.PartialContent, resp.StatusCode); 49Assert.Equal(HttpStatusCode.OK, resp.StatusCode); 69Assert.Equal(HttpStatusCode.PartialContent, resp.StatusCode); 86Assert.Equal(HttpStatusCode.PartialContent, resp.StatusCode); 103Assert.Equal(HttpStatusCode.NotModified, resp.StatusCode); 121Assert.Equal(HttpStatusCode.OK, resp.StatusCode); 139Assert.Equal(HttpStatusCode.OK, resp.StatusCode); 156Assert.Equal(HttpStatusCode.OK, resp.StatusCode); 175Assert.Equal(HttpStatusCode.OK, resp.StatusCode); 194Assert.Equal(HttpStatusCode.OK, resp.StatusCode); 213Assert.Equal(HttpStatusCode.OK, resp.StatusCode); 221Assert.Equal(HttpStatusCode.OK, resp.StatusCode); 240Assert.Equal(HttpStatusCode.OK, resp.StatusCode); 248Assert.Equal(HttpStatusCode.OK, resp.StatusCode); 273Assert.Equal(HttpStatusCode.PartialContent, resp.StatusCode); 294Assert.Equal(HttpStatusCode.PartialContent, resp.StatusCode); 315Assert.Equal(HttpStatusCode.RequestedRangeNotSatisfiable, resp.StatusCode); 329Assert.Equal(HttpStatusCode.OK, resp.StatusCode); 347Assert.Equal(HttpStatusCode.RequestedRangeNotSatisfiable, resp.StatusCode); 362Assert.Equal(HttpStatusCode.OK, resp.StatusCode); 382Assert.Equal(HttpStatusCode.OK, resp.StatusCode); 404Assert.Equal(HttpStatusCode.OK, resp.StatusCode); 425Assert.Equal(HttpStatusCode.OK, resp.StatusCode); 445Assert.Equal(HttpStatusCode.OK, resp.StatusCode);
StaticFileMiddlewareTests.cs (14)
40Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 74Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 114Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 153Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 189Assert.Equal(HttpStatusCode.OK, response.StatusCode); 228Assert.Equal(HttpStatusCode.OK, response.StatusCode); 270Assert.Equal(HttpStatusCode.OK, response.StatusCode); 320Assert.Equal(HttpStatusCode.OK, response.StatusCode); 363Assert.Equal(HttpStatusCode.OK, response.StatusCode); 411Assert.Equal(HttpStatusCode.OK, response.StatusCode); 432Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 463Assert.Equal(errorCode, response.StatusCode); 481Assert.Equal(HttpStatusCode.OK, response.StatusCode); 540Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
Microsoft.AspNetCore.TestHost.Tests (7)
TestServerTests.cs (7)
40Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 56Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 72Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); 655Assert.Equal(HttpStatusCode.OK, result.StatusCode); 673Assert.Equal(HttpStatusCode.OK, result.StatusCode); 703Assert.Equal(HttpStatusCode.OK, result.StatusCode); 716Assert.Equal(HttpStatusCode.OK, result.StatusCode);
Microsoft.AspNetCore.Testing.Tests (5)
FakesExtensionsTests.cs (5)
65Assert.Equal(HttpStatusCode.OK, (await client.GetAsync("/")).StatusCode); 79Assert.Equal(HttpStatusCode.OK, (await client.GetAsync("/")).StatusCode); 91Assert.Equal(HttpStatusCode.Gone, response.StatusCode); 164Assert.Equal(HttpStatusCode.OK, (await client.GetAsync("/")).StatusCode); 176Assert.Equal(HttpStatusCode.OK, (await client.GetAsync("/")).StatusCode);
Microsoft.AspNetCore.Tests (5)
WebApplicationTests.cs (5)
1679Assert.Equal(418, (int)terminalResult.StatusCode); 1706Assert.Equal(203, ((int)response.StatusCode)); 2040Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode); 2146Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode); 2171Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
Autobahn\AutobahnTester.cs (1)
91_logger.LogWarning("Non-successful response when pinging {url}: {statusCode} {reasonPhrase}", deployment.ApplicationBaseUri, resp.StatusCode, resp.ReasonPhrase);
Microsoft.AspNetCore.WebSockets.Tests (6)
WebSocketCompressionMiddlewareTests.cs (3)
40Assert.Equal(HttpStatusCode.SwitchingProtocols, response.StatusCode); 68Assert.Equal(HttpStatusCode.SwitchingProtocols, response.StatusCode); 102Assert.Equal(HttpStatusCode.SwitchingProtocols, response.StatusCode);
WebSocketMiddlewareTests.cs (3)
687Assert.Equal(expectedCode, response.StatusCode); 713Assert.Equal(HttpStatusCode.OK, response.StatusCode); 770Assert.Equal(HttpStatusCode.SwitchingProtocols, response.StatusCode);
Microsoft.Build.Tasks.Core (1)
DownloadFile.cs (1)
168throw new CustomHttpRequestException(e.Message, e.InnerException, response.StatusCode);
Microsoft.DotNet.Arcade.Sdk (2)
src\DownloadFile.cs (2)
159if (httpResponse.StatusCode == HttpStatusCode.NotFound || 162Log.LogMessage($"Problems downloading file from '{uri}'. Does the resource exist on the storage? {httpResponse.StatusCode} : {httpResponse.ReasonPhrase}");
Microsoft.DotNet.Build.Tasks.Feed (5)
src\common\GeneralUtils.cs (2)
157else if (response.StatusCode >= (System.Net.HttpStatusCode)400 && 158response.StatusCode < (System.Net.HttpStatusCode)500)
src\CreateAzureDevOpsFeed.cs (3)
152if (createFeedResponse.StatusCode == HttpStatusCode.Created) 161else if (createFeedResponse.StatusCode == HttpStatusCode.Conflict) 174throw new Exception($"Feed '{baseFeedName}' was not created. Request failed with status code {createFeedResponse.StatusCode}. Exception: {await createFeedResponse.Content.ReadAsStringAsync()}");
Microsoft.DotNet.Deployment.Tasks.Links (17)
Microsoft.DotNet.Helix.Sdk (7)
AzureDevOpsTask.cs (4)
123if (res.StatusCode == HttpStatusCode.Unauthorized || res.StatusCode == HttpStatusCode.Found) 127$"A call to an Azure DevOps api returned {(int)res.StatusCode}, which may indicate a bad 'System.AccessToken' value.\n\nPlease Check the 'Make secrets available to builds of forks' in the pipeline pull request validation trigger settings.\nWe have evaluated the security considerations of this setting and have determined that it is fine to use for our public PR validation builds."); 131var statusCodeValue = (int)res.StatusCode;
FindDotNetCliPackage.cs (3)
108if (res.StatusCode == HttpStatusCode.NotFound) 209if (specificResponse.StatusCode == HttpStatusCode.NotFound) 212if (genericResponse.StatusCode != HttpStatusCode.NotFound)
Microsoft.DotNet.Internal.SymbolHelper (1)
SymbolPromotionHelper.cs (1)
210if (statusResponse.StatusCode == HttpStatusCode.NotFound)
Microsoft.DotNet.VersionTools (6)
Automation\GitHubApi\GitHubClient.cs (3)
461string message = $"Response code does not indicate success: {(int)response.StatusCode} ({response.StatusCode})"; 466throw new HttpFailureResponseException(response.StatusCode, message, failureContent);
Automation\VstsApi\VstsAdapterClient.cs (3)
429string message = $"Response code does not indicate success: {(int)response.StatusCode} ({response.StatusCode})"; 434throw new HttpFailureResponseException(response.StatusCode, message, failureContent);
Microsoft.Extensions.Http (2)
Logging\LogHelper.cs (2)
116_requestEnd(logger, duration.TotalMilliseconds, (int)response.StatusCode, null); 155_requestPipelineEnd(logger, duration.TotalMilliseconds, (int)response.StatusCode, null);
Microsoft.Extensions.Http.Diagnostics (1)
Logging\Internal\HttpRequestReader.cs (1)
131logRecord.StatusCode = (int)response.StatusCode;
Microsoft.Extensions.Http.Polly.Tests (11)
DependencyInjection\PollyHttpClientBuilderExtensionsTest.cs (11)
70Assert.Equal(HttpStatusCode.Created, response.StatusCode); 105Assert.Equal(HttpStatusCode.Created, response.StatusCode); 143Assert.Equal(HttpStatusCode.Created, response.StatusCode); 184Assert.Equal(HttpStatusCode.Created, response.StatusCode); 228Assert.Equal(HttpStatusCode.Created, response.StatusCode); 281Assert.Equal(HttpStatusCode.OK, response.StatusCode); 326Assert.Equal(HttpStatusCode.OK, response.StatusCode); 370Assert.Equal(HttpStatusCode.Created, response.StatusCode); 379Assert.Equal(HttpStatusCode.Created, response.StatusCode); 388Assert.Equal(HttpStatusCode.Created, response.StatusCode); 440Assert.Equal(HttpStatusCode.Created, response.StatusCode);
Microsoft.Extensions.Http.Resilience (3)
Polly\HttpClientResiliencePredicates.cs (2)
67var statusCode = (int)response.StatusCode; 70response.StatusCode == HttpStatusCode.RequestTimeout ||
Resilience\Internal\HttpResilienceMetricsEnricher.cs (1)
21context.Tags.Add(new(HttpResilienceTagNames.ErrorType, ((int)response.StatusCode).ToInvariantString()));
Microsoft.Extensions.Http.Resilience.PerformanceTests (4)
RetryBenchmark.cs (2)
50var statusCode = (int)r.StatusCode; 53r.StatusCode == HttpStatusCode.RequestTimeout ||
StandardResilienceBenchmark.cs (2)
45var statusCode = (int)r.StatusCode; 48r.StatusCode == HttpStatusCode.RequestTimeout ||
Microsoft.Extensions.Http.Resilience.Tests (4)
Hedging\HedgingTests.cs (2)
202Assert.Equal(HttpStatusCode.ServiceUnavailable, result.StatusCode); 302Assert.Equal(HttpStatusCode.OK, result.StatusCode);
Resilience\ResilienceHandlerTest.cs (2)
117Assert.Equal(HttpStatusCode.Created, response.StatusCode); 142Assert.Equal(HttpStatusCode.Created, response.StatusCode);
Microsoft.Extensions.Logging.AzureAppServices (2)
BlobAppendReferenceWrapper.cs (2)
46if (response.StatusCode == HttpStatusCode.NotFound) 65response.StatusCode == HttpStatusCode.PreconditionFailed)
Negotiate.Client (12)
Controllers\AuthTestController.cs (12)
37if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out var actionResult) 58if (HasWrongStatusCode(StatusCodes.Status401Unauthorized, result.StatusCode, body, out var actionResult) 86if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out var actionResult) 109if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out var actionResult) 120if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out actionResult) 142if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out var actionResult) 153if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out actionResult) 175if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out var actionResult) 186if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out actionResult) 206if (HasWrongStatusCode(StatusCodes.Status401Unauthorized, result.StatusCode, body, out var actionResult) 232if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out var actionResult) 243if (HasWrongStatusCode(StatusCodes.Status401Unauthorized, result.StatusCode, body, out actionResult)
ServerComparison.FunctionalTests (5)
HelloWorldTest.cs (1)
155Assert.Equal(HttpStatusCode.InternalServerError, response.StatusCode);
NtlmAuthenticationTest.cs (4)
69Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode); 82Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode); 92Assert.Equal(HttpStatusCode.OK, response.StatusCode); 97Assert.Equal(HttpStatusCode.Forbidden, response.StatusCode);
System.Net.Http (36)
System\Net\Http\DiagnosticsHandler.cs (2)
203activity.SetTag("http.response.status_code", DiagnosticsHelper.GetBoxedInt32((int)response.StatusCode)); 329[DynamicDependency(nameof(HttpResponseMessage.StatusCode), typeof(HttpResponseMessage))]
System\Net\Http\DiagnosticsHelper.cs (1)
66int statusCode = (int)response.StatusCode;
System\Net\Http\HttpResponseMessage.cs (1)
89return HttpStatusDescription.Get(StatusCode);
System\Net\Http\HttpTelemetry.cs (1)
70RequestStop(response is null ? -1 : (int)response.StatusCode);
System\Net\Http\Metrics\MetricsHandler.cs (1)
113tags.Add("http.response.status_code", DiagnosticsHelper.GetBoxedInt32((int)response.StatusCode));
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.cs (5)
63if (response.StatusCode != HttpStatusCode.Unauthorized) 153response.StatusCode == HttpStatusCode.ProxyAuthenticationRequired : 154response.StatusCode == HttpStatusCode.Unauthorized; 292switch (response.StatusCode) 340if (NetEventSource.Log.IsEnabled() && response.StatusCode == HttpStatusCode.Unauthorized)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (3)
794if (tunnelResponse.StatusCode != HttpStatusCode.OK) 797throw new HttpRequestException(HttpRequestError.ProxyTunnelError, SR.Format(SR.net_http_proxy_tunnel_returned_failure_status_code, _proxyUri, (int)tunnelResponse.StatusCode), statusCode: tunnelResponse.StatusCode);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (1)
116if (response.StatusCode == HttpStatusCode.MisdirectedRequest && connection.Authority != _originAuthority)
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (2)
649if (_response.StatusCode == HttpStatusCode.Continue && _expect100ContinueWaiter != null) 1071if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.ResponseHeadersStop((int)_response.StatusCode);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (3)
401while ((int)_response.StatusCode < 200); 405if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.ResponseHeadersStop((int)_response.StatusCode); 1052if (_response.StatusCode == HttpStatusCode.Continue && _expect100ContinueCompletionSource != null)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (10)
677while ((uint)(response.StatusCode - 100) <= 199 - 100) 681if (allowExpect100ToContinue != null && response.StatusCode == HttpStatusCode.Continue) 686else if (response.StatusCode == HttpStatusCode.SwitchingProtocols) 698if (NetEventSource.Log.IsEnabled()) Trace($"Current {response.StatusCode} response is an interim response or not expected, need to read for a final response."); 719if (HttpTelemetry.Log.IsEnabled()) HttpTelemetry.Log.ResponseHeadersStop((int)response.StatusCode); 725if ((int)response.StatusCode >= 300 && 780if (request.Method.IsHead || response.StatusCode is HttpStatusCode.NoContent or HttpStatusCode.NotModified) 785else if (request.Method.IsConnect && response.StatusCode == HttpStatusCode.OK) 798else if (response.StatusCode == HttpStatusCode.SwitchingProtocols) 1106string? knownReasonPhrase = HttpStatusDescription.Get(response.StatusCode);
System\Net\Http\SocketsHttpHandler\RedirectHandler.cs (6)
62Trace($"Redirecting from {request.RequestUri} to {redirectUri} in response to status code {(int)response.StatusCode} '{response.StatusCode}'.", request.GetHashCode()); 67if (RequestRequiresForceGet(response.StatusCode, request.Method)) 71Trace($"Modified request from {request.Method} to {HttpMethod.Get} in response to status code {(int)response.StatusCode} '{response.StatusCode}'.", request.GetHashCode()); 93switch (response.StatusCode)
System.Net.Requests (1)
System\Net\HttpWebResponse.cs (1)
246return _httpResponseMessage.StatusCode;
System.Net.WebSockets.Client (5)
System\Net\WebSockets\WebSocketHandle.Managed.cs (5)
230HttpStatusCode = response.StatusCode; 453if (response.StatusCode != HttpStatusCode.SwitchingProtocols) 455throw new WebSocketException(WebSocketError.NotAWebSocket, SR.Format(SR.net_WebSockets_ConnectStatusExpected, (int)response.StatusCode, (int)HttpStatusCode.SwitchingProtocols)); 467if (response.StatusCode != HttpStatusCode.OK) 469throw new WebSocketException(WebSocketError.NotAWebSocket, SR.Format(SR.net_WebSockets_ConnectStatusExpected, (int)response.StatusCode, (int)HttpStatusCode.OK));
Templates.Blazor.Tests (3)
src\ProjectTemplates\Shared\AspNetProcess.cs (3)
238return response.IsSuccessStatusCode || response.StatusCode == HttpStatusCode.Redirect; 269Assert.True(statusCode == response.StatusCode, $"Expected {requestUrl} to have status '{statusCode}' but it was '{response.StatusCode}'.");
Templates.Blazor.WebAssembly.Auth.Tests (4)
src\ProjectTemplates\Shared\AspNetProcess.cs (3)
238return response.IsSuccessStatusCode || response.StatusCode == HttpStatusCode.Redirect; 269Assert.True(statusCode == response.StatusCode, $"Expected {requestUrl} to have status '{statusCode}' but it was '{response.StatusCode}'.");
src\Shared\E2ETesting\SauceConnectServer.cs (1)
160if (response.StatusCode == HttpStatusCode.OK)
Templates.Blazor.WebAssembly.Tests (4)
src\ProjectTemplates\Shared\AspNetProcess.cs (3)
238return response.IsSuccessStatusCode || response.StatusCode == HttpStatusCode.Redirect; 269Assert.True(statusCode == response.StatusCode, $"Expected {requestUrl} to have status '{statusCode}' but it was '{response.StatusCode}'.");
src\Shared\E2ETesting\SauceConnectServer.cs (1)
160if (response.StatusCode == HttpStatusCode.OK)
Templates.Mvc.Tests (4)
src\ProjectTemplates\Shared\AspNetProcess.cs (3)
238return response.IsSuccessStatusCode || response.StatusCode == HttpStatusCode.Redirect; 269Assert.True(statusCode == response.StatusCode, $"Expected {requestUrl} to have status '{statusCode}' but it was '{response.StatusCode}'.");
src\Shared\E2ETesting\SauceConnectServer.cs (1)
160if (response.StatusCode == HttpStatusCode.OK)
Templates.Tests (7)
IdentityUIPackageTest.cs (3)
132Assert.Equal(HttpStatusCode.OK, response.StatusCode); 144Assert.Equal(HttpStatusCode.OK, response.StatusCode); 155Assert.True(response?.StatusCode == HttpStatusCode.OK, $"Couldn't find file '{file}'");
src\ProjectTemplates\Shared\AspNetProcess.cs (3)
238return response.IsSuccessStatusCode || response.StatusCode == HttpStatusCode.Redirect; 269Assert.True(statusCode == response.StatusCode, $"Expected {requestUrl} to have status '{statusCode}' but it was '{response.StatusCode}'.");
src\Shared\E2ETesting\SauceConnectServer.cs (1)
160if (response.StatusCode == HttpStatusCode.OK)