Implemented interface member:
property
StatusCode
Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult.StatusCode
45 writes to StatusCode
BasicWebSite (1)
Filters\UnprocessableResultFilter.cs (1)
22
StatusCode
= 422,
Microsoft.AspNetCore.Mvc.Core (25)
AcceptedAtActionResult.cs (1)
39
StatusCode
= DefaultStatusCode;
AcceptedAtRouteResult.cs (1)
47
StatusCode
= DefaultStatusCode;
AcceptedResult.cs (3)
24
StatusCode
= DefaultStatusCode;
37
StatusCode
= DefaultStatusCode;
60
StatusCode
= DefaultStatusCode;
ActionResultOfT.cs (1)
98
StatusCode
= statusCode
BadRequestObjectResult.cs (2)
25
StatusCode
= DefaultStatusCode;
37
StatusCode
= DefaultStatusCode;
ConflictObjectResult.cs (2)
25
StatusCode
= DefaultStatusCode;
37
StatusCode
= DefaultStatusCode;
ControllerBase.cs (3)
233
StatusCode
= statusCode
1900
StatusCode
= problemDetails.Status
2029
StatusCode
= validationProblem?.Status
CreatedAtActionResult.cs (1)
39
StatusCode
= DefaultStatusCode;
CreatedAtRouteResult.cs (1)
47
StatusCode
= DefaultStatusCode;
CreatedResult.cs (3)
25
StatusCode
= DefaultStatusCode;
42
StatusCode
= DefaultStatusCode;
66
StatusCode
= DefaultStatusCode;
DependencyInjection\ApiBehaviorOptionsSetup.cs (1)
43
StatusCode
= problemDetails.Status,
Infrastructure\ProblemDetailsClientErrorFactory.cs (1)
21
StatusCode
= problemDetails.Status,
NotFoundObjectResult.cs (1)
24
StatusCode
= DefaultStatusCode;
ObjectResult.cs (1)
77
StatusCode
= details.Status;
OkObjectResult.cs (1)
25
StatusCode
= DefaultStatusCode;
UnauthorizedObjectResult.cs (1)
22
StatusCode
= DefaultStatusCode;
UnprocessableEntityObjectResult.cs (1)
34
StatusCode
= DefaultStatusCode;
Microsoft.AspNetCore.Mvc.Core.Test (2)
ObjectResultTests.cs (2)
40
StatusCode
= 404,
72
StatusCode
= StatusCodes.Status422UnprocessableEntity,
Microsoft.AspNetCore.Mvc.RazorPages (2)
PageBase.cs (1)
1156
=> new ObjectResult(value) {
StatusCode
= statusCode };
PageModel.cs (1)
1511
StatusCode
= statusCode
Mvc.Api.Analyzers.Test (14)
TestFiles\ActualApiResponseMetadataFactoryTest\InspectReturnExpressionTests.cs (3)
22
return new ObjectResult(new object()) {
StatusCode
= 201 };
39
StatusCode
= StatusCodes.Status422UnprocessableEntity,
57
return new BadRequestObjectResult(new object()) {
StatusCode
= statusCode };
TestFiles\ActualApiResponseMetadataFactoryTest\InspectReturnExpressionTestsForSwitchExpression.cs (3)
30
_ => new ObjectResult(new object()) {
StatusCode
= 201 }
56
StatusCode
= StatusCodes.Status422UnprocessableEntity,
85
_ => new BadRequestObjectResult(new object()) {
StatusCode
= statusCode }
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodesFromObjectInitializer.Input.cs (4)
20
StatusCode
= 422
28
StatusCode
= StatusCodes.Status202Accepted
38
StatusCode
= localStatusCode
47
StatusCode
= FieldStatusCode
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodesFromObjectInitializer.Output.cs (4)
26
StatusCode
= 422
34
StatusCode
= StatusCodes.Status202Accepted
44
StatusCode
= localStatusCode
53
StatusCode
= FieldStatusCode
XmlFormattersWebSite (1)
Controllers\HomeController.cs (1)
19
StatusCode
= 400
73 references to StatusCode
Microsoft.AspNetCore.Mvc.Core (5)
ObjectResult.cs (5)
75
if (details.Status != null &&
StatusCode
== null)
79
else if (details.Status == null &&
StatusCode
!= null)
81
details.Status =
StatusCode
;
85
if (
StatusCode
.HasValue)
87
context.HttpContext.Response.StatusCode =
StatusCode
.Value;
Microsoft.AspNetCore.Mvc.Core.Test (55)
AcceptedAtActionResultTests.cs (1)
102
Assert.Equal(StatusCodes.Status202Accepted, result.
StatusCode
);
AcceptedAtRouteResultTests.cs (1)
43
Assert.Equal(StatusCodes.Status202Accepted, result.
StatusCode
);
AcceptedResultTests.cs (1)
39
Assert.Equal(StatusCodes.Status202Accepted, result.
StatusCode
);
ActionResultOfTTest.cs (3)
74
Assert.Equal(StatusCodes.Status200OK, objectResult.
StatusCode
);
92
Assert.Equal(StatusCodes.Status400BadRequest, objectResult.
StatusCode
);
110
Assert.Equal(StatusCodes.Status200OK, objectResult.
StatusCode
);
BadRequestObjectResultTests.cs (2)
19
Assert.Equal(StatusCodes.Status400BadRequest, badRequestObjectResult.
StatusCode
);
30
Assert.Equal(StatusCodes.Status400BadRequest, badRequestObjectResult.
StatusCode
);
ConflictObjectResultTest.cs (2)
19
Assert.Equal(StatusCodes.Status409Conflict, conflictObjectResult.
StatusCode
);
30
Assert.Equal(StatusCodes.Status409Conflict, conflictObjectResult.
StatusCode
);
ControllerBaseTest.cs (35)
1300
Assert.Equal(StatusCodes.Status201Created, result.
StatusCode
);
1315
Assert.Equal(StatusCodes.Status201Created, result.
StatusCode
);
1331
Assert.Equal(StatusCodes.Status201Created, result.
StatusCode
);
1346
Assert.Equal(StatusCodes.Status201Created, result.
StatusCode
);
1362
Assert.Equal(StatusCodes.Status201Created, result.
StatusCode
);
1377
Assert.Equal(StatusCodes.Status201Created, result.
StatusCode
);
1396
Assert.Equal(StatusCodes.Status201Created, result.
StatusCode
);
1420
Assert.Equal(StatusCodes.Status201Created, result.
StatusCode
);
1457
Assert.Equal(StatusCodes.Status201Created, result.
StatusCode
);
1478
Assert.Equal(StatusCodes.Status201Created, result.
StatusCode
);
1494
Assert.Equal(StatusCodes.Status202Accepted, result.
StatusCode
);
1509
Assert.Equal(StatusCodes.Status202Accepted, result.
StatusCode
);
1525
Assert.Equal(StatusCodes.Status202Accepted, result.
StatusCode
);
1541
Assert.Equal(StatusCodes.Status202Accepted, result.
StatusCode
);
1557
Assert.Equal(StatusCodes.Status202Accepted, result.
StatusCode
);
1572
Assert.Equal(StatusCodes.Status202Accepted, result.
StatusCode
);
1590
Assert.Equal(StatusCodes.Status202Accepted, result.
StatusCode
);
1614
Assert.Equal(StatusCodes.Status202Accepted, result.
StatusCode
);
1636
Assert.Equal(StatusCodes.Status202Accepted, result.
StatusCode
);
1657
Assert.Equal(StatusCodes.Status202Accepted, result.
StatusCode
);
2001
Assert.Equal(StatusCodes.Status404NotFound, result.
StatusCode
);
2045
Assert.Equal(StatusCodes.Status400BadRequest, result.
StatusCode
);
2060
Assert.Equal(StatusCodes.Status400BadRequest, result.
StatusCode
);
2091
Assert.Equal(StatusCodes.Status422UnprocessableEntity, result.
StatusCode
);
2106
Assert.Equal(StatusCodes.Status422UnprocessableEntity, result.
StatusCode
);
2138
Assert.Equal(StatusCodes.Status409Conflict, result.
StatusCode
);
2153
Assert.Equal(StatusCodes.Status409Conflict, result.
StatusCode
);
2298
Assert.Equal(statusCode, result.
StatusCode
);
2315
Assert.Equal(statusCode, result.
StatusCode
);
2357
Assert.Equal(400, badRequestResult.
StatusCode
);
2407
Assert.Equal(405, objectResult.
StatusCode
);
2428
Assert.Equal(400, badRequestResult.
StatusCode
);
2476
Assert.Equal(500, actionResult.
StatusCode
);
2502
Assert.Equal(500, actionResult.
StatusCode
);
2547
Assert.Equal(422, actionResult.
StatusCode
);
CreatedResultTests.cs (1)
25
Assert.Equal(StatusCodes.Status201Created, result.
StatusCode
);
DependencyInjection\ApiBehaviorOptionsSetupTest.cs (1)
87
Assert.Equal(422, objectResult.
StatusCode
);
HttpNotFoundObjectResultTest.cs (2)
22
Assert.Equal(StatusCodes.Status404NotFound, notFound.
StatusCode
);
32
Assert.Equal(StatusCodes.Status404NotFound, notFound.
StatusCode
);
HttpOkObjectResultTest.cs (1)
42
Assert.Equal(StatusCodes.Status200OK, result.
StatusCode
);
ObjectResultTests.cs (3)
30
Assert.Null(result.
StatusCode
);
121
Assert.Equal(StatusCodes.Status413RequestEntityTooLarge, result.
StatusCode
.Value);
152
Assert.Equal(StatusCodes.Status400BadRequest, result.
StatusCode
.Value);
UnprocessableEntityObjectResultTests.cs (2)
19
Assert.Equal(StatusCodes.Status422UnprocessableEntity, result.
StatusCode
);
30
Assert.Equal(StatusCodes.Status422UnprocessableEntity, result.
StatusCode
);
Microsoft.AspNetCore.Mvc.RazorPages.Test (8)
PageModelTest.cs (4)
1531
Assert.Equal(StatusCodes.Status400BadRequest, result.
StatusCode
);
1560
Assert.Equal(StatusCodes.Status404NotFound, result.
StatusCode
);
1683
Assert.Equal(statusCode, result.
StatusCode
);
1700
Assert.Equal(statusCode, result.
StatusCode
);
PageTest.cs (4)
1521
Assert.Equal(StatusCodes.Status400BadRequest, result.
StatusCode
);
1550
Assert.Equal(StatusCodes.Status404NotFound, result.
StatusCode
);
1673
Assert.Equal(statusCode, result.
StatusCode
);
1690
Assert.Equal(statusCode, result.
StatusCode
);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (5)
ControllerUnitTestabilityTests.cs (5)
99
Assert.Equal(StatusCodes.Status201Created, createdResult.
StatusCode
);
119
Assert.Equal(StatusCodes.Status202Accepted, acceptedResult.
StatusCode
);
267
Assert.Equal(StatusCodes.Status404NotFound, httpNotFoundObjectResult.
StatusCode
);
301
Assert.Equal(StatusCodes.Status400BadRequest, httpBadRequest.
StatusCode
);
314
Assert.Equal(StatusCodes.Status400BadRequest, httpBadRequest.
StatusCode
);