2 types derived from ComplexTypeModelBinder
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (1)
1600
public class TestableComplexTypeModelBinder :
ComplexTypeModelBinder
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
ActionParametersIntegrationTest.cs (1)
1066
private class CustomComplexTypeModelBinder :
ComplexTypeModelBinder
4 instantiations of ComplexTypeModelBinder
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Binders\ComplexTypeModelBinderProvider.cs (1)
32
return new
ComplexTypeModelBinder
(
Microsoft.AspNetCore.Mvc.Core.Test (3)
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (3)
364
var binder = new
ComplexTypeModelBinder
(
408
var binder = new
ComplexTypeModelBinder
(
452
var binder = new
ComplexTypeModelBinder
(
38 references to ComplexTypeModelBinder
Microsoft.AspNetCore.Mvc.Core (3)
ModelBinding\Binders\ComplexTypeModelBinder.cs (3)
39
/// Creates a new <see cref="
ComplexTypeModelBinder
"/>.
53
/// Creates a new <see cref="
ComplexTypeModelBinder
"/>.
74
_logger = loggerFactory.CreateLogger(typeof(
ComplexTypeModelBinder
));
Microsoft.AspNetCore.Mvc.Core.Test (34)
ModelBinding\Binders\ComplexTypeModelBinderProviderTest.cs (2)
52
Assert.IsType<
ComplexTypeModelBinder
>(result);
79
Assert.IsType<
ComplexTypeModelBinder
>(result);
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (32)
23
[InlineData(true,
ComplexTypeModelBinder
.ValueProviderDataAvailable)]
24
[InlineData(false,
ComplexTypeModelBinder
.NoDataAvailable)]
53
Assert.Equal(
ComplexTypeModelBinder
.NoDataAvailable, canCreate);
68
Assert.Equal(
ComplexTypeModelBinder
.ValueProviderDataAvailable, canCreate);
72
[InlineData(
ComplexTypeModelBinder
.ValueProviderDataAvailable)]
73
[InlineData(
ComplexTypeModelBinder
.GreedyPropertiesMayHaveData)]
77
bindingContext.IsTopLevelObject = expectedCanCreate ==
ComplexTypeModelBinder
.ValueProviderDataAvailable;
89
[InlineData(
ComplexTypeModelBinder
.ValueProviderDataAvailable)]
90
[InlineData(
ComplexTypeModelBinder
.NoDataAvailable)]
97
.Returns(valueAvailable ==
ComplexTypeModelBinder
.ValueProviderDataAvailable);
129
Assert.Equal(
ComplexTypeModelBinder
.NoDataAvailable, canCreate);
145
Assert.Equal(
ComplexTypeModelBinder
.ValueProviderDataAvailable, canCreate);
149
[InlineData(typeof(TypeWithNoBinderMetadata),
ComplexTypeModelBinder
.NoDataAvailable)]
150
[InlineData(typeof(TypeWithNoBinderMetadata),
ComplexTypeModelBinder
.ValueProviderDataAvailable)]
158
.Returns(valueProviderProvidesValue ==
ComplexTypeModelBinder
.ValueProviderDataAvailable);
175
[InlineData(typeof(TypeWithAtLeastOnePropertyMarkedUsingValueBinderMetadata),
ComplexTypeModelBinder
.GreedyPropertiesMayHaveData)]
176
[InlineData(typeof(TypeWithAtLeastOnePropertyMarkedUsingValueBinderMetadata),
ComplexTypeModelBinder
.ValueProviderDataAvailable)]
177
[InlineData(typeof(TypeWithUnmarkedAndBinderMetadataMarkedProperties),
ComplexTypeModelBinder
.GreedyPropertiesMayHaveData)]
178
[InlineData(typeof(TypeWithUnmarkedAndBinderMetadataMarkedProperties),
ComplexTypeModelBinder
.ValueProviderDataAvailable)]
186
.Returns(expectedCanCreate ==
ComplexTypeModelBinder
.ValueProviderDataAvailable);
203
[InlineData(typeof(TypeWithAtLeastOnePropertyMarkedUsingValueBinderMetadata),
ComplexTypeModelBinder
.GreedyPropertiesMayHaveData)]
204
[InlineData(typeof(TypeWithAtLeastOnePropertyMarkedUsingValueBinderMetadata),
ComplexTypeModelBinder
.ValueProviderDataAvailable)]
217
.Returns(expectedCanCreate ==
ComplexTypeModelBinder
.ValueProviderDataAvailable);
238
[InlineData(typeof(TypeWithUnmarkedAndBinderMetadataMarkedProperties), false,
ComplexTypeModelBinder
.GreedyPropertiesMayHaveData)]
239
[InlineData(typeof(TypeWithUnmarkedAndBinderMetadataMarkedProperties), true,
ComplexTypeModelBinder
.ValueProviderDataAvailable)]
240
[InlineData(typeof(TypeWithNoBinderMetadata), false,
ComplexTypeModelBinder
.NoDataAvailable)]
241
[InlineData(typeof(TypeWithNoBinderMetadata), true,
ComplexTypeModelBinder
.ValueProviderDataAvailable)]
364
var
binder = new ComplexTypeModelBinder(
408
var
binder = new ComplexTypeModelBinder(
452
var
binder = new ComplexTypeModelBinder(
483
var canUpdate =
ComplexTypeModelBinder
.CanUpdatePropertyInternal(propertyMetadata);
503
var canUpdate =
ComplexTypeModelBinder
.CanUpdatePropertyInternal(metadata);
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
ComplexTypeModelBinderIntegrationTest.cs (1)
13
protected override Type ExpectedModelBinderType => typeof(
ComplexTypeModelBinder
);