Implemented interface member:
property
ContentTypes
Microsoft.AspNetCore.Http.Metadata.IProducesResponseTypeMetadata.ContentTypes
3 writes to ContentTypes
Microsoft.AspNetCore.Http.Abstractions (3)
Metadata\ProducesResponseTypeMetadata.cs (3)
31ContentTypes = Enumerable.Empty<string>(); 41ContentTypes = contentTypes; 58ContentTypes = contentTypes;
17 references to ContentTypes
Microsoft.AspNetCore.Http.Abstractions (2)
Metadata\ProducesResponseTypeMetadata.cs (2)
84return DebuggerHelpers.GetDebugText(nameof(StatusCode), StatusCode, nameof(ContentTypes), ContentTypes, nameof(Type), Type, includeNullValues: false, prefix: "Produces");
Microsoft.AspNetCore.Http.Results.Tests (11)
AcceptedAtRouteOfTResultTests.cs (1)
136Assert.Single(producesResponseTypeMetadata.ContentTypes, "application/json");
AcceptedOfTResultTests.cs (1)
77Assert.Single(producesResponseTypeMetadata.ContentTypes, "application/json");
BadRequestOfTResultTests.cs (1)
120Assert.Single(producesResponseTypeMetadata.ContentTypes, "application/json");
ConflictOfTResultTests.cs (1)
98Assert.Single(producesResponseTypeMetadata.ContentTypes, "application/json");
CreatedAtRouteOfTResultTests.cs (1)
106Assert.Single(producesResponseTypeMetadata.ContentTypes, "application/json");
CreatedOfTResultTests.cs (1)
112Assert.Single(producesResponseTypeMetadata.ContentTypes, "application/json");
InternalServerErrorOfTResultTests.cs (1)
120Assert.Single(producesResponseTypeMetadata.ContentTypes, "application/json");
NotFoundOfTResultTests.cs (1)
80Assert.Single(producesResponseTypeMetadata.ContentTypes, "application/json");
OkOfTResultTests.cs (1)
97Assert.Single(producesResponseTypeMetadata.ContentTypes, "application/json");
UnprocessableEntityOfTResultTests.cs (1)
97Assert.Single(producesResponseTypeMetadata.ContentTypes, "application/json");
ValidationProblemResultTests.cs (1)
108Assert.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));