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