32 references to ApiConventionTypeAttribute
ApiExplorerWebSite (1)
Controllers\ApiExplorerResponseTypeWithApiConventionController.cs (1)
10[ApiConventionType(typeof(DefaultApiConventions))]
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (3)
ApiResponseTypeProviderTest.cs (3)
66[ApiConventionType(typeof(DefaultApiConventions))] 189[ApiConventionType(typeof(DefaultApiConventions))] 222[ApiConventionType(typeof(DefaultApiConventions))]
Microsoft.AspNetCore.Mvc.Core.Test (13)
ApiConventionTypeAttributeTest.cs (3)
23() => new ApiConventionTypeAttribute(typeof(ConventionWithProducesAttribute)), 44() => new ApiConventionTypeAttribute(typeof(ConventionWithRouteAttribute)), 65() => new ApiConventionTypeAttribute(typeof(ConventionWitUnsupportedAttributes)),
ApiExplorer\ApiConventionResultTest.cs (9)
13var attribute = new ApiConventionTypeAttribute(typeof(DefaultApiConventions)); 34var attribute = new ApiConventionTypeAttribute(typeof(GetApiConvention_ReturnsResultFromConventionType)); 72new ApiConventionTypeAttribute(typeof(GetApiConvention_ReturnsResultFromConventionType)), 73new ApiConventionTypeAttribute(typeof(DefaultApiConventions)), 99var attributes = new[] { new ApiConventionTypeAttribute(typeof(DefaultApiConventions)) }; 119var attributes = new[] { new ApiConventionTypeAttribute(typeof(DefaultApiConventions)) }; 141new ApiConventionTypeAttribute(typeof(DefaultApiConventions)), 165new ApiConventionTypeAttribute(typeof(DefaultApiConventions)), 189new ApiConventionTypeAttribute(typeof(DefaultApiConventions)),
ApplicationModels\ApiConventionApplicationModelConventionTest.cs (1)
167controllerAttributes = controllerAttributes ?? new[] { new ApiConventionTypeAttribute(typeof(DefaultApiConventions)) };
Mvc.Api.Analyzers.Test (15)
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsFullyQualifiedProducesResponseType.Input.cs (1)
1[assembly: Microsoft.AspNetCore.Mvc.ApiConventionType(typeof(Microsoft.AspNetCore.Mvc.DefaultApiConventions))]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsFullyQualifiedProducesResponseType.Output.cs (1)
3[assembly: Microsoft.AspNetCore.Mvc.ApiConventionType(typeof(Microsoft.AspNetCore.Mvc.DefaultApiConventions))]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsSuccessStatusCode.Input.cs (1)
6[assembly: ApiConventionType(typeof(DefaultApiConventions))]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsSuccessStatusCode.Output.cs (1)
7[assembly: ApiConventionType(typeof(DefaultApiConventions))]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWithConventionAddsMissingStatusCodes.Input.cs (1)
6[assembly: ApiConventionType(typeof(DefaultApiConventions))]
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWithConventionAddsMissingStatusCodes.Output.cs (1)
7[assembly: ApiConventionType(typeof(DefaultApiConventions))]
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_ForActionResultOfTReturningMethodWithoutAnyAttributes.cs (1)
7[assembly: ApiConventionType(typeof(DefaultApiConventions))]
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_ForControllerWithCustomConvention.cs (1)
9[assembly: ApiConventionType(typeof(DiagnosticsAreReturned_ForControllerWithCustomConvention))]
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfMethodWithApiConventionMethod_ReturnsUndocumentedStatusCode.cs (1)
6[assembly: ApiConventionType(typeof(DefaultApiConventions))]
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfMethodWithConvention_DoesNotReturnDocumentedStatusCode.cs (1)
6[assembly: ApiConventionType(typeof(DefaultApiConventions))]
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfMethodWithConvention_ReturnsUndocumentedStatusCode.cs (1)
7[assembly: ApiConventionType(typeof(DiagnosticsAreReturned_IfMethodWithConvention_ReturnsUndocumentedStatusCodeConvention))]
TestFiles\ApiConventionAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApiController_WithAllDocumentedStatusCodes.cs (1)
6[assembly: ApiConventionType(typeof(DefaultApiConventions))]
TestFiles\ApiConventionAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForReturnStatementsInLambdas.cs (1)
7[assembly: ApiConventionType(typeof(DefaultApiConventions))]
TestFiles\SymbolApiResponseMetadataProviderTest\GetResponseMetadataTests.cs (2)
97[ApiConventionType(typeof(DefaultApiConventions))] 103[ApiConventionType(typeof(DefaultApiConventions))]