2 types derived from ComplexTypeModelBinder
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (1)
1600public class TestableComplexTypeModelBinder : ComplexTypeModelBinder
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
ActionParametersIntegrationTest.cs (1)
1066private class CustomComplexTypeModelBinder : ComplexTypeModelBinder
4 instantiations of ComplexTypeModelBinder
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Binders\ComplexTypeModelBinderProvider.cs (1)
32return new ComplexTypeModelBinder(
Microsoft.AspNetCore.Mvc.Core.Test (3)
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (3)
364var binder = new ComplexTypeModelBinder( 408var binder = new ComplexTypeModelBinder( 452var 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)
52Assert.IsType<ComplexTypeModelBinder>(result); 79Assert.IsType<ComplexTypeModelBinder>(result);
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (32)
23[InlineData(true, ComplexTypeModelBinder.ValueProviderDataAvailable)] 24[InlineData(false, ComplexTypeModelBinder.NoDataAvailable)] 53Assert.Equal(ComplexTypeModelBinder.NoDataAvailable, canCreate); 68Assert.Equal(ComplexTypeModelBinder.ValueProviderDataAvailable, canCreate); 72[InlineData(ComplexTypeModelBinder.ValueProviderDataAvailable)] 73[InlineData(ComplexTypeModelBinder.GreedyPropertiesMayHaveData)] 77bindingContext.IsTopLevelObject = expectedCanCreate == ComplexTypeModelBinder.ValueProviderDataAvailable; 89[InlineData(ComplexTypeModelBinder.ValueProviderDataAvailable)] 90[InlineData(ComplexTypeModelBinder.NoDataAvailable)] 97.Returns(valueAvailable == ComplexTypeModelBinder.ValueProviderDataAvailable); 129Assert.Equal(ComplexTypeModelBinder.NoDataAvailable, canCreate); 145Assert.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)] 364var binder = new ComplexTypeModelBinder( 408var binder = new ComplexTypeModelBinder( 452var binder = new ComplexTypeModelBinder( 483var canUpdate = ComplexTypeModelBinder.CanUpdatePropertyInternal(propertyMetadata); 503var canUpdate = ComplexTypeModelBinder.CanUpdatePropertyInternal(metadata);
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
ComplexTypeModelBinderIntegrationTest.cs (1)
13protected override Type ExpectedModelBinderType => typeof(ComplexTypeModelBinder);