1 implementation of BindingDetails
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
TestModelMetadataProvider.cs (1)
231public IMetadataBuilder BindingDetails(Action<BindingMetadata> action)
71 references to BindingDetails
Microsoft.AspNetCore.Mvc.Abstractions.Test (5)
ModelBinding\BindingInfoTest.cs (5)
106provider.ForType(modelType).BindingDetails(metadata => 155provider.ForType(modelType).BindingDetails(metadata => 180provider.ForType(modelType).BindingDetails(metadata => 206provider.ForType(modelType).BindingDetails(metadata => 233provider.ForType(modelType).BindingDetails(metadata =>
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
DefaultApiDescriptionProviderTest.cs (1)
2079.BindingDetails(d => d.IsBindingRequired = true);
Microsoft.AspNetCore.Mvc.Core.Test (53)
ModelBinding\Binders\ArrayModelBinderProviderTest.cs (1)
79nameof(ModelWithIntArrayProperty.ArrayProperty)).BindingDetails(bd => bd.IsReadOnly = true);
ModelBinding\Binders\ArrayModelBinderTest.cs (4)
72.BindingDetails(b => b.IsBindingRequired = isBindingRequired); 106.BindingDetails(b => b.IsBindingRequired = true); 150.BindingDetails(b => b.IsBindingRequired = isBindingRequired); 197nameof(ModelWithIntArrayProperty.ArrayProperty)).BindingDetails(bd => bd.IsReadOnly = false);
ModelBinding\Binders\BinderTypeModelBinderTest.cs (1)
71metadataProvider.ForType(modelType).BindingDetails(bd => bd.BinderType = binderType);
ModelBinding\Binders\BodyModelBinderTests.cs (21)
34provider.ForType<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body); 56provider.ForType<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body); 80provider.ForType<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body); 105provider.ForType<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body); 130provider.ForType<Person>().BindingDetails(d => 173provider.ForType<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body); 201provider.ForType<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body); 229provider.ForType<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body); 257metadataProvider.ForType<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body); 305metadataProvider.ForType<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body); 334metadataProvider.ForType<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body); 376metadataProvider.ForType<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body); 405metadataProvider.ForType<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body); 452metadataProvider.ForType<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body); 487metadataProvider.ForType<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body); 516metadataProvider.ForType<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body); 539provider.ForType<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body); 577provider.ForType<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body); 602provider.ForType<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body); 631provider.ForType<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body); 663provider.ForType<Person>().BindingDetails(d => d.BindingSource = BindingSource.Body);
ModelBinding\Binders\CollectionModelBinderTest.cs (5)
258.BindingDetails(b => b.IsBindingRequired = isBindingRequired); 292.BindingDetails(b => b.IsBindingRequired = true); 333.BindingDetails(b => b.IsBindingRequired = false); 406.BindingDetails(b => b.IsBindingRequired = isBindingRequired); 483.BindingDetails(bd => bd.IsReadOnly = isReadOnly);
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (3)
284.BindingDetails(b => b.IsBindingRequired = true); 336.BindingDetails(b => b.IsBindingRequired = true); 380.BindingDetails(b => b.IsBindingRequired = true);
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (4)
297.BindingDetails(b => b.IsBindingRequired = isBindingRequired); 344.BindingDetails(b => b.IsBindingRequired = true); 396.BindingDetails(b => b.IsBindingRequired = true); 440.BindingDetails(b => b.IsBindingRequired = true);
ModelBinding\Binders\DictionaryModelBinderTest.cs (5)
443.BindingDetails(b => b.IsBindingRequired = isBindingRequired); 478.BindingDetails(b => b.IsBindingRequired = true); 527.BindingDetails(b => b.IsBindingRequired = isBindingRequired); 570.BindingDetails(b => b.IsBindingRequired = isBindingRequired); 671.BindingDetails(bd => bd.IsReadOnly = isReadOnly);
ModelBinding\Binders\FormFileModelBinderTest.cs (1)
437.BindingDetails(bd => bd.BindingSource = BindingSource.Header);
ModelBinding\Binders\HeaderModelBinderTests.cs (2)
392metadataProvider.ForType(modelType).BindingDetails(d => d.BindingSource = BindingSource.Header); 401.BindingDetails(bd => bd.BindingSource = BindingSource.Header);
ModelBinding\Binders\ServicesModelBinderTest.cs (1)
36metadataProvider.ForType(modelType).BindingDetails(d => d.BindingSource = BindingSource.Services);
ModelBinding\DefaultModelBindingContextTest.cs (3)
30metadataProvider.ForType<object>().BindingDetails(d => 92.BindingDetails(b => b.BindingSource = BindingSource.Query); 120.BindingDetails(b => b.BindingSource = BindingSource.Form);
ModelBinding\ModelBinderFactoryTest.cs (2)
105.BindingDetails(m => m.IsBindingAllowed = false); 344metadataProvider.ForType<Employee>().BindingDetails(binding =>
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (3)
NumericClientModelValidatorTest.cs (3)
46.BindingDetails(d => 81.BindingDetails(d => 110.BindingDetails(d => d.ModelBindingMessageProvider.SetNonPropertyValueMustBeANumberAccessor(
Microsoft.AspNetCore.Mvc.IntegrationTests (9)
BodyValidationIntegrationTests.cs (2)
816.BindingDetails(binding => binding.BindingSource = BindingSource.Body); 862.BindingDetails(binding => binding.BindingSource = BindingSource.Body);
ComplexRecordIntegrationTest.cs (1)
2006.BindingDetails((Action<ModelBinding.Metadata.BindingMetadata>)(binding =>
ComplexTypeIntegrationTestBase.cs (1)
2159.BindingDetails((Action<ModelBinding.Metadata.BindingMetadata>)(binding =>
KeyValuePairModelBinderIntegrationTest.cs (2)
97.BindingDetails((System.Action<ModelBinding.Metadata.BindingMetadata>)(binding => 184.BindingDetails((System.Action<ModelBinding.Metadata.BindingMetadata>)(binding =>
ServicesModelBinderIntegrationTest.cs (1)
390.BindingDetails(binding => binding.BindingSource = BindingSource.Services);
SimpleTypeModelBinderIntegrationTest.cs (2)
417.BindingDetails(binding => 520.BindingDetails(binding =>