Implemented interface member:
property
ContentTypes
Microsoft.AspNetCore.Http.Metadata.IProducesResponseTypeMetadata.ContentTypes
3 writes to ContentTypes
Microsoft.AspNetCore.Http.Abstractions (3)
Metadata\ProducesResponseTypeMetadata.cs (3)
33
ContentTypes
= Enumerable.Empty<string>();
43
ContentTypes
= contentTypes;
60
ContentTypes
= contentTypes;
28 references to ContentTypes
Microsoft.AspNetCore.Http.Abstractions (2)
Metadata\ProducesResponseTypeMetadata.cs (2)
86
return DebuggerHelpers.GetDebugText(nameof(StatusCode), StatusCode, nameof(
ContentTypes
),
ContentTypes
, nameof(Type), Type, includeNullValues: false, prefix: "Produces");
Microsoft.AspNetCore.Http.Results.Tests (22)
AcceptedAtRouteOfTResultTests.cs (2)
137
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/json");
156
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/problem+json");
AcceptedOfTResultTests.cs (2)
77
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/json");
96
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/problem+json");
BadRequestOfTResultTests.cs (2)
119
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/json");
138
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/problem+json");
ConflictOfTResultTests.cs (2)
97
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/json");
116
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/problem+json");
CreatedAtRouteOfTResultTests.cs (2)
106
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/json");
125
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/problem+json");
CreatedOfTResultTests.cs (2)
112
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/json");
131
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/problem+json");
InternalServerErrorOfTResultTests.cs (2)
119
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/json");
138
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/problem+json");
NotFoundOfTResultTests.cs (2)
80
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/json");
99
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/problem+json");
OkOfTResultTests.cs (2)
97
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/json");
116
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/problem+json");
ServerSentEventsResultTests.cs (1)
136
Assert.Collection(producesResponseTypeMetadata.
ContentTypes
,
UnprocessableEntityOfTResultTests.cs (2)
97
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/json");
116
Assert.Single(producesResponseTypeMetadata.
ContentTypes
, "application/problem+json");
ValidationProblemResultTests.cs (1)
107
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
));