Implemented interface member:
property
StatusCode
Microsoft.AspNetCore.Http.Metadata.IProducesResponseTypeMetadata.StatusCode
2 writes to StatusCode
Microsoft.AspNetCore.Http.Abstractions (2)
Metadata\ProducesResponseTypeMetadata.cs (2)
26StatusCode = statusCode; 57StatusCode = statusCode;
28 references to StatusCode
Microsoft.AspNetCore.Http.Abstractions (2)
Metadata\ProducesResponseTypeMetadata.cs (2)
84return DebuggerHelpers.GetDebugText(nameof(StatusCode), StatusCode, nameof(ContentTypes), ContentTypes, nameof(Type), Type, includeNullValues: false, prefix: "Produces");
Microsoft.AspNetCore.Http.Results.Tests (22)
AcceptedAtRouteOfTResultTests.cs (1)
134Assert.Equal(StatusCodes.Status202Accepted, producesResponseTypeMetadata.StatusCode);
AcceptedAtRouteResultTests.cs (1)
88Assert.Equal(StatusCodes.Status202Accepted, producesResponseTypeMetadata.StatusCode);
AcceptedOfTResultTests.cs (1)
75Assert.Equal(StatusCodes.Status202Accepted, producesResponseTypeMetadata.StatusCode);
AcceptedResultTests.cs (1)
45Assert.Equal(StatusCodes.Status202Accepted, producesResponseTypeMetadata.StatusCode);
BadRequestOfTResultTests.cs (1)
118Assert.Equal(StatusCodes.Status400BadRequest, producesResponseTypeMetadata.StatusCode);
BadRequestResultTests.cs (1)
58Assert.Equal(StatusCodes.Status400BadRequest, producesResponseTypeMetadata.StatusCode);
ConflictOfTResultTests.cs (1)
96Assert.Equal(StatusCodes.Status409Conflict, producesResponseTypeMetadata.StatusCode);
ConflictResultTests.cs (1)
59Assert.Equal(StatusCodes.Status409Conflict, producesResponseTypeMetadata.StatusCode);
CreatedAtRouteOfTResultTests.cs (1)
104Assert.Equal(StatusCodes.Status201Created, producesResponseTypeMetadata.StatusCode);
CreatedAtRouteResultTests.cs (1)
86Assert.Equal(StatusCodes.Status201Created, producesResponseTypeMetadata.StatusCode);
CreatedOfTResultTests.cs (1)
110Assert.Equal(StatusCodes.Status201Created, producesResponseTypeMetadata.StatusCode);
CreatedResultTests.cs (1)
76Assert.Equal(StatusCodes.Status201Created, producesResponseTypeMetadata.StatusCode);
InternalServerErrorOfTResultTests.cs (1)
118Assert.Equal(StatusCodes.Status500InternalServerError, producesResponseTypeMetadata.StatusCode);
InternalServerErrorResultTests.cs (1)
58Assert.Equal(StatusCodes.Status500InternalServerError, producesResponseTypeMetadata.StatusCode);
NoContentResultTests.cs (1)
55Assert.Equal(StatusCodes.Status204NoContent, producesResponseTypeMetadata.StatusCode);
NotFoundOfTResultTests.cs (1)
78Assert.Equal(StatusCodes.Status404NotFound, producesResponseTypeMetadata.StatusCode);
NotFoundResultTests.cs (1)
54Assert.Equal(StatusCodes.Status404NotFound, producesResponseTypeMetadata.StatusCode);
OkOfTResultTests.cs (1)
95Assert.Equal(StatusCodes.Status200OK, producesResponseTypeMetadata.StatusCode);
OkResultTests.cs (1)
57Assert.Equal(StatusCodes.Status200OK, producesResponseTypeMetadata.StatusCode);
UnprocessableEntityOfTResultTests.cs (1)
95Assert.Equal(StatusCodes.Status422UnprocessableEntity, producesResponseTypeMetadata.StatusCode);
UnprocessableEntityResultTests.cs (1)
58Assert.Equal(StatusCodes.Status422UnprocessableEntity, producesResponseTypeMetadata.StatusCode);
ValidationProblemResultTests.cs (1)
106Assert.Equal(StatusCodes.Status400BadRequest, producesResponseTypeMetadata.StatusCode);
Microsoft.AspNetCore.Routing.Tests (4)
Builder\OpenApiRouteHandlerBuilderExtensionsTest.cs (4)
53Assert.Equal(StatusCodes.Status200OK, metadata.StatusCode); 67Assert.Equal(StatusCodes.Status404NotFound, metadata.StatusCode); 81Assert.Equal(StatusCodes.Status400BadRequest, metadata.StatusCode); 99Assert.Equal(StatusCodes.Status400BadRequest, metadata.StatusCode);