18 references to StatusCode
Microsoft.AspNetCore.Http.Results (2)
ProblemHttpResult.cs (2)
46int? IStatusCodeHttpResult.StatusCode => StatusCode; 57if (StatusCode is { } code)
Microsoft.AspNetCore.Http.Results.Tests (16)
ProblemResultTests.cs (1)
187Assert.Equal(StatusCodes.Status413RequestEntityTooLarge, result.StatusCode);
ResultsTests.cs (9)
1265Assert.Equal(statusCode, result.StatusCode); 1289Assert.Equal(statusCode, result.StatusCode); 1313Assert.Equal(statusCode, result.StatusCode); 1334Assert.Equal(statusCode, result.StatusCode); 1351Assert.Equal(StatusCodes.Status500InternalServerError, result.StatusCode); 1370Assert.Equal(StatusCodes.Status500InternalServerError, result.StatusCode); 1386Assert.Equal(StatusCodes.Status400BadRequest, result.StatusCode); 1419Assert.Equal(statusCode, result.StatusCode); 1450Assert.Equal(statusCode, result.StatusCode);
TypedResultsTests.cs (6)
1081Assert.Equal(statusCode, result.StatusCode); 1105Assert.Equal(statusCode, result.StatusCode); 1126Assert.Equal(statusCode, result.StatusCode); 1143Assert.Equal(StatusCodes.Status500InternalServerError, result.StatusCode); 1162Assert.Equal(StatusCodes.Status500InternalServerError, result.StatusCode); 1178Assert.Equal(StatusCodes.Status400BadRequest, result.StatusCode);