2 instantiations of ConsumesConstraintForFormFileParameterConvention
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationModels\ApiBehaviorApplicationModelProvider.cs (1)
40
ActionModelConventions.Add(new
ConsumesConstraintForFormFileParameterConvention
());
Microsoft.AspNetCore.Mvc.Core.Test (1)
ApplicationModels\ConsumesConstraintForFormFileParameterConventionTest.cs (1)
53
return new
ConsumesConstraintForFormFileParameterConvention
();
7 references to ConsumesConstraintForFormFileParameterConvention
Microsoft.AspNetCore.Mvc.Core.Test (7)
ApplicationModels\ApiBehaviorApplicationModelProviderTest.cs (2)
138
c => Assert.IsType<
ConsumesConstraintForFormFileParameterConvention
>(c),
174
Assert.Empty(provider.ActionModelConventions.OfType<
ConsumesConstraintForFormFileParameterConvention
>());
ApplicationModels\ConsumesConstraintForFormFileParameterConventionTest.cs (5)
19
var
convention = GetConvention();
22
ConsumesConstraintForFormFileParameterConvention
.AddMultipartFormDataConsumesAttribute(action);
40
var
convention = GetConvention();
43
ConsumesConstraintForFormFileParameterConvention
.AddMultipartFormDataConsumesAttribute(action);
51
private
ConsumesConstraintForFormFileParameterConvention
GetConvention()