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