37 references to DefaultApiConventions
ApiExplorerWebSite (1)
Controllers\ApiExplorerResponseTypeWithApiConventionController.cs (1)
10
[ApiConventionType(typeof(
DefaultApiConventions
))]
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (5)
ApiResponseTypeProviderTest.cs (5)
66
[ApiConventionType(typeof(
DefaultApiConventions
))]
189
[ApiConventionType(typeof(
DefaultApiConventions
))]
222
[ApiConventionType(typeof(
DefaultApiConventions
))]
278
[ApiConventionMethod(typeof(
DefaultApiConventions
), nameof(
DefaultApiConventions
.Get))]
Microsoft.AspNetCore.Mvc.Core.Test (10)
ApiExplorer\ApiConventionResultTest.cs (9)
13
var attribute = new ApiConventionTypeAttribute(typeof(
DefaultApiConventions
));
73
new ApiConventionTypeAttribute(typeof(
DefaultApiConventions
)),
99
var attributes = new[] { new ApiConventionTypeAttribute(typeof(
DefaultApiConventions
)) };
119
var attributes = new[] { new ApiConventionTypeAttribute(typeof(
DefaultApiConventions
)) };
141
new ApiConventionTypeAttribute(typeof(
DefaultApiConventions
)),
165
new ApiConventionTypeAttribute(typeof(
DefaultApiConventions
)),
189
new ApiConventionTypeAttribute(typeof(
DefaultApiConventions
)),
214
[ApiConventionMethod(typeof(
DefaultApiConventions
), nameof(
DefaultApiConventions
.Post))]
ApplicationModels\ApiConventionApplicationModelConventionTest.cs (1)
167
controllerAttributes = controllerAttributes ?? new[] { new ApiConventionTypeAttribute(typeof(
DefaultApiConventions
)) };
Mvc.Api.Analyzers.Test (21)
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\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWithConventionMethodAddsMissingStatusCodes.Input.cs (2)
7
[ApiConventionMethod(typeof(
DefaultApiConventions
), nameof(
DefaultApiConventions
.Find))]
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_ForActionResultOfTReturningMethodWithoutAnyAttributes.cs (1)
7
[assembly: ApiConventionType(typeof(
DefaultApiConventions
))]
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfMethodWithApiConventionMethod_ReturnsUndocumentedStatusCode.cs (3)
6
[assembly: ApiConventionType(typeof(
DefaultApiConventions
))]
13
[ApiConventionMethod(typeof(
DefaultApiConventions
), nameof(
DefaultApiConventions
.Post))]
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfMethodWithConvention_DoesNotReturnDocumentedStatusCode.cs (1)
6
[assembly: ApiConventionType(typeof(
DefaultApiConventions
))]
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 (6)
47
[ApiConventionMethod(typeof(
DefaultApiConventions
), nameof(
DefaultApiConventions
.Find))]
51
[ApiConventionMethod(typeof(
DefaultApiConventions
), nameof(
DefaultApiConventions
.Find))]
97
[ApiConventionType(typeof(
DefaultApiConventions
))]
103
[ApiConventionType(typeof(
DefaultApiConventions
))]