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