29 writes to IsBindingRequired
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
DefaultApiDescriptionProviderTest.cs (1)
2079.BindingDetails(d => d.IsBindingRequired = true);
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Metadata\DefaultBindingMetadataProvider.cs (1)
71context.BindingMetadata.IsBindingRequired = bindingBehavior.Behavior == BindingBehavior.Required;
Microsoft.AspNetCore.Mvc.Core.Test (21)
ModelBinding\Binders\ArrayModelBinderTest.cs (3)
72.BindingDetails(b => b.IsBindingRequired = isBindingRequired); 106.BindingDetails(b => b.IsBindingRequired = true); 150.BindingDetails(b => b.IsBindingRequired = isBindingRequired);
ModelBinding\Binders\CollectionModelBinderTest.cs (4)
258.BindingDetails(b => b.IsBindingRequired = isBindingRequired); 292.BindingDetails(b => b.IsBindingRequired = true); 333.BindingDetails(b => b.IsBindingRequired = false); 406.BindingDetails(b => b.IsBindingRequired = isBindingRequired);
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 (4)
443.BindingDetails(b => b.IsBindingRequired = isBindingRequired); 478.BindingDetails(b => b.IsBindingRequired = true); 527.BindingDetails(b => b.IsBindingRequired = isBindingRequired); 570.BindingDetails(b => b.IsBindingRequired = isBindingRequired);
ModelBinding\Metadata\DefaultBindingMetadataProviderTest.cs (2)
616context.BindingMetadata.IsBindingRequired = initialValue; 647context.BindingMetadata.IsBindingRequired = initialValue;
ModelBinding\Metadata\DefaultModelMetadataTest.cs (1)
329IsBindingRequired = true, // Will be ignored.
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (5)
DataAnnotationsMetadataProviderTest.cs (1)
1486context.BindingMetadata.IsBindingRequired = initialValue;
DataMemberRequiredBindingMetadataProviderTest.cs (4)
55context.BindingMetadata.IsBindingRequired = initialValue; 80context.BindingMetadata.IsBindingRequired = initialValue; 103context.BindingMetadata.IsBindingRequired = initialValue; 131context.BindingMetadata.IsBindingRequired = initialValue;
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
ModelBinding\DataMemberRequiredBindingMetadataProvider.cs (1)
48context.BindingMetadata.IsBindingRequired = true;
29 references to IsBindingRequired
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Metadata\DefaultModelMetadata.cs (1)
274_isBindingRequired = BindingMetadata.IsBindingRequired;
Microsoft.AspNetCore.Mvc.Core.Test (21)
ModelBinding\Metadata\DefaultBindingMetadataProviderTest.cs (21)
172Assert.False(context.BindingMetadata.IsBindingRequired); 195Assert.False(context.BindingMetadata.IsBindingRequired); 218Assert.False(context.BindingMetadata.IsBindingRequired); 241Assert.True(context.BindingMetadata.IsBindingRequired); 264Assert.True(context.BindingMetadata.IsBindingRequired); 287Assert.False(context.BindingMetadata.IsBindingRequired); 310Assert.False(context.BindingMetadata.IsBindingRequired); 333Assert.False(context.BindingMetadata.IsBindingRequired); 356Assert.True(context.BindingMetadata.IsBindingRequired); 379Assert.True(context.BindingMetadata.IsBindingRequired); 431Assert.True(context.BindingMetadata.IsBindingRequired); 449Assert.True(context.BindingMetadata.IsBindingRequired); 467Assert.False(context.BindingMetadata.IsBindingRequired); 485Assert.False(context.BindingMetadata.IsBindingRequired); 508Assert.False(context.BindingMetadata.IsBindingRequired); 531Assert.True(context.BindingMetadata.IsBindingRequired); 554Assert.True(context.BindingMetadata.IsBindingRequired); 577Assert.False(context.BindingMetadata.IsBindingRequired); 596Assert.True(context.BindingMetadata.IsBindingRequired); 625Assert.Equal(initialValue, context.BindingMetadata.IsBindingRequired); 656Assert.Equal(initialValue, context.BindingMetadata.IsBindingRequired);
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (6)
DataAnnotationsMetadataProviderTest.cs (1)
1492Assert.Equal(initialValue, context.BindingMetadata.IsBindingRequired);
DataMemberRequiredBindingMetadataProviderTest.cs (5)
33Assert.True(context.BindingMetadata.IsBindingRequired); 61Assert.Equal(initialValue, context.BindingMetadata.IsBindingRequired); 86Assert.Equal(initialValue, context.BindingMetadata.IsBindingRequired); 109Assert.Equal(initialValue, context.BindingMetadata.IsBindingRequired); 137Assert.Equal(initialValue, context.BindingMetadata.IsBindingRequired);
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
ModelBinding\DataMemberRequiredBindingMetadataProvider.cs (1)
26if (context.BindingMetadata.IsBindingRequired)