2 instantiations of ApiConventionApplicationModelConvention
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationModels\ApiBehaviorApplicationModelProvider.cs (1)
45ActionModelConventions.Add(new ApiConventionApplicationModelConvention(defaultErrorTypeAttribute));
Microsoft.AspNetCore.Mvc.Core.Test (1)
ApplicationModels\ApiConventionApplicationModelConventionTest.cs (1)
153return new ApiConventionApplicationModelConvention(new ProducesErrorResponseTypeAttribute(errorType));
13 references to ApiConventionApplicationModelConvention
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationModels\ApiConventionApplicationModelConvention.cs (1)
20/// Initializes a new instance of <see cref="ApiConventionApplicationModelConvention"/>.
Microsoft.AspNetCore.Mvc.Core.Test (12)
ApplicationModels\ApiBehaviorApplicationModelProviderTest.cs (3)
141var convention = Assert.IsType<ApiConventionApplicationModelConvention>(c); 205var convention = Assert.Single(provider.ActionModelConventions.OfType<ApiConventionApplicationModelConvention>());
ApplicationModels\ApiConventionApplicationModelConventionTest.cs (9)
21var convention = GetConvention(); 35var convention = GetConvention(); 51var convention = GetConvention(); 71var convention = GetConvention(expected); 87var convention = GetConvention(); 105var convention = GetConvention(); 124var convention = GetConvention(); 140var convention = GetConvention(); 150private ApiConventionApplicationModelConvention GetConvention(Type errorType = null)