32 instantiations of ProducesDefaultResponseTypeAttribute
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (7)
ApiResponseTypeProviderTest.cs (7)
239new ProducesDefaultResponseTypeAttribute(typeof(SerializableError)), 295new ProducesDefaultResponseTypeAttribute(), 388new ProducesDefaultResponseTypeAttribute(), 431new ProducesDefaultResponseTypeAttribute(typeof(DivideByZeroException)), 528new ProducesDefaultResponseTypeAttribute(), 575new ProducesDefaultResponseTypeAttribute(), 625new ProducesDefaultResponseTypeAttribute(),
Microsoft.AspNetCore.Mvc.Core (8)
DefaultApiConventions.cs (8)
21[ProducesDefaultResponseType] 35[ProducesDefaultResponseType] 51[ProducesDefaultResponseType] 65[ProducesDefaultResponseType] 83[ProducesDefaultResponseType] 103[ProducesDefaultResponseType] 123[ProducesDefaultResponseType] 144[ProducesDefaultResponseType]
Microsoft.AspNetCore.OpenApi.Tests (2)
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.Responses.cs (2)
223builder.MapGet("/api/todos", [ProducesDefaultResponseType(typeof(Error))] () => { }); 255builder.MapGet("/api/todos", [ProducesDefaultResponseType(typeof(Error))] () => { })
Mvc.Api.Analyzers.Test (15)
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsFullyQualifiedProducesResponseType.Output.cs (1)
23[Microsoft.AspNetCore.Mvc.ProducesDefaultResponseType]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsMissingStatusCodes.Output.cs (1)
15[ProducesDefaultResponseType]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsMissingStatusCodesAndTypes.Output.cs (1)
15[ProducesDefaultResponseType]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsNumericLiteralForNonExistingStatusCodeConstants.Output.cs (1)
11[ProducesDefaultResponseType]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsResponseTypeWhenDifferentFromErrorType.Output.cs (1)
13[ProducesDefaultResponseType]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodes.Output.cs (1)
11[ProducesDefaultResponseType]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodesFromConstructorParameters.Output.cs (1)
19[ProducesDefaultResponseType]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodesFromMethodParameters.Output.cs (1)
19[ProducesDefaultResponseType]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodesFromObjectInitializer.Output.cs (1)
19[ProducesDefaultResponseType]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsSuccessStatusCode.Output.cs (1)
18[ProducesDefaultResponseType]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWithConventionAddsMissingStatusCodes.Output.cs (1)
17[ProducesDefaultResponseType]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWithConventionMethodAddsMissingStatusCodes.Output.cs (1)
11[ProducesDefaultResponseType]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWorksOnExpressionBodiedMethod.Output.cs (1)
10[ProducesDefaultResponseType]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWorksWhenMultipleIdenticalStatusCodesAreInError.Output.cs (1)
19[ProducesDefaultResponseType]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWorksWithValidationProblem.Output.cs (1)
13[ProducesDefaultResponseType]
4 references to ProducesDefaultResponseTypeAttribute
Microsoft.AspNetCore.Mvc.Core (2)
ApiConventionTypeAttribute.cs (2)
76$"{nameof(ProducesResponseTypeAttribute)}, {nameof(ProducesDefaultResponseTypeAttribute)}, {nameof(ApiConventionNameMatchAttribute)}"); 85attribute is ProducesDefaultResponseTypeAttribute ||
Microsoft.AspNetCore.Mvc.Core.Test (2)
ApiConventionMethodAttributeTest.cs (1)
150$"The following attributes are allowed on API convention methods: {nameof(ProducesResponseTypeAttribute)}, {nameof(ProducesDefaultResponseTypeAttribute)}, {nameof(ApiConventionNameMatchAttribute)}";
ApiConventionTypeAttributeTest.cs (1)
85$"The following attributes are allowed on API convention methods: {nameof(ProducesResponseTypeAttribute)}, {nameof(ProducesDefaultResponseTypeAttribute)}, {nameof(ApiConventionNameMatchAttribute)}";