Implemented interface member:
property
Type
Microsoft.AspNetCore.Http.Metadata.IProducesResponseTypeMetadata.Type
2 writes to Type
Microsoft.AspNetCore.Http.Abstractions (2)
Metadata\ProducesResponseTypeMetadata.cs (2)
27
Type
= type;
56
Type
= type;
31 references to Type
Microsoft.AspNetCore.Http.Abstractions (3)
Metadata\ProducesResponseTypeMetadata.cs (3)
22
/// <param name="type">The <see cref="
Type
"/> of object that is going to be written in the response.</param>
84
return DebuggerHelpers.GetDebugText(nameof(StatusCode), StatusCode, nameof(ContentTypes), ContentTypes, nameof(
Type
),
Type
, includeNullValues: false, prefix: "Produces");
Microsoft.AspNetCore.Http.Extensions.Tests (2)
RequestDelegateFactoryTests.cs (2)
2708
Assert.Contains(result.EndpointMetadata, m => m is ProducesResponseTypeMetadata {
Type
: { } type } && type == typeof(CountsDefaultEndpointMetadataResult));
2731
Assert.Contains(result.EndpointMetadata, m => m is ProducesResponseTypeMetadata {
Type
: { } type } && type == typeof(CountsDefaultEndpointMetadataResult));
Microsoft.AspNetCore.Http.Results.Tests (22)
AcceptedAtRouteOfTResultTests.cs (1)
135
Assert.Equal(typeof(Todo), producesResponseTypeMetadata.
Type
);
AcceptedAtRouteResultTests.cs (1)
89
Assert.Equal(typeof(void), producesResponseTypeMetadata.
Type
);
AcceptedOfTResultTests.cs (1)
76
Assert.Equal(typeof(Todo), producesResponseTypeMetadata.
Type
);
AcceptedResultTests.cs (1)
46
Assert.Equal(typeof(void), producesResponseTypeMetadata.
Type
);
BadRequestOfTResultTests.cs (1)
119
Assert.Equal(typeof(Todo), producesResponseTypeMetadata.
Type
);
BadRequestResultTests.cs (1)
59
Assert.Equal(typeof(void), producesResponseTypeMetadata.
Type
);
ConflictOfTResultTests.cs (1)
97
Assert.Equal(typeof(Todo), producesResponseTypeMetadata.
Type
);
ConflictResultTests.cs (1)
60
Assert.Equal(typeof(void), producesResponseTypeMetadata.
Type
);
CreatedAtRouteOfTResultTests.cs (1)
105
Assert.Equal(typeof(Todo), producesResponseTypeMetadata.
Type
);
CreatedAtRouteResultTests.cs (1)
87
Assert.Equal(typeof(void), producesResponseTypeMetadata.
Type
);
CreatedOfTResultTests.cs (1)
111
Assert.Equal(typeof(Todo), producesResponseTypeMetadata.
Type
);
CreatedResultTests.cs (1)
77
Assert.Equal(typeof(void), producesResponseTypeMetadata.
Type
);
InternalServerErrorOfTResultTests.cs (1)
119
Assert.Equal(typeof(Todo), producesResponseTypeMetadata.
Type
);
InternalServerErrorResultTests.cs (1)
59
Assert.Equal(typeof(void), producesResponseTypeMetadata.
Type
);
NoContentResultTests.cs (1)
56
Assert.Equal(typeof(void), producesResponseTypeMetadata.
Type
);
NotFoundOfTResultTests.cs (1)
79
Assert.Equal(typeof(Todo), producesResponseTypeMetadata.
Type
);
NotFoundResultTests.cs (1)
55
Assert.Equal(typeof(void), producesResponseTypeMetadata.
Type
);
OkOfTResultTests.cs (1)
96
Assert.Equal(typeof(Todo), producesResponseTypeMetadata.
Type
);
OkResultTests.cs (1)
58
Assert.Equal(typeof(void), producesResponseTypeMetadata.
Type
);
UnprocessableEntityOfTResultTests.cs (1)
96
Assert.Equal(typeof(Todo), producesResponseTypeMetadata.
Type
);
UnprocessableEntityResultTests.cs (1)
59
Assert.Equal(typeof(void), producesResponseTypeMetadata.
Type
);
ValidationProblemResultTests.cs (1)
107
Assert.Equal(typeof(HttpValidationProblemDetails), producesResponseTypeMetadata.
Type
);
Microsoft.AspNetCore.Routing.Tests (4)
Builder\OpenApiRouteHandlerBuilderExtensionsTest.cs (4)
52
Assert.Equal(typeof(TestEndointConventionBuilder), metadata.
Type
);
66
Assert.Equal(typeof(void), metadata.
Type
);
80
Assert.Equal(typeof(ProblemDetails), metadata.
Type
);
98
Assert.Equal(typeof(HttpValidationProblemDetails), metadata.
Type
);