Implemented interface member:
property
ContentTypes
Microsoft.AspNetCore.Http.Metadata.IProducesResponseTypeMetadata.ContentTypes
3 writes to ContentTypes
Microsoft.AspNetCore.Http.Abstractions (3)
Metadata\ProducesResponseTypeMetadata.cs (3)
31
ContentTypes
= Enumerable.Empty<string>();
41
ContentTypes
= contentTypes;
58
ContentTypes
= contentTypes;
17 references to ContentTypes
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 (11)
AcceptedAtRouteOfTResultTests.cs (1)
136
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/json");
AcceptedOfTResultTests.cs (1)
77
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/json");
BadRequestOfTResultTests.cs (1)
120
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/json");
ConflictOfTResultTests.cs (1)
98
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/json");
CreatedAtRouteOfTResultTests.cs (1)
106
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/json");
CreatedOfTResultTests.cs (1)
112
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/json");
InternalServerErrorOfTResultTests.cs (1)
120
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/json");
NotFoundOfTResultTests.cs (1)
80
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/json");
OkOfTResultTests.cs (1)
97
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/json");
UnprocessableEntityOfTResultTests.cs (1)
97
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/json");
ValidationProblemResultTests.cs (1)
108
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/problem+json");
Microsoft.AspNetCore.Routing.Tests (4)
Builder\OpenApiRouteHandlerBuilderExtensionsTest.cs (4)
54
Assert.Equal("application/json", Assert.Single(metadata.
ContentTypes
));
68
Assert.Empty(metadata.
ContentTypes
);
82
Assert.Equal("application/problem+json", Assert.Single(metadata.
ContentTypes
));
100
Assert.Equal("application/problem+json", Assert.Single(metadata.
ContentTypes
));