8 writes to IsBindingAllowed
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\Metadata\DefaultBindingMetadataProvider.cs (1)
70
context.BindingMetadata.
IsBindingAllowed
= bindingBehavior.Behavior != BindingBehavior.Never;
ModelBinding\Metadata\ExcludeBindingMetadataProvider.cs (1)
41
context.BindingMetadata.
IsBindingAllowed
= false;
Microsoft.AspNetCore.Mvc.Core.Test (6)
ModelBinding\Metadata\DefaultBindingMetadataProviderTest.cs (2)
615
context.BindingMetadata.
IsBindingAllowed
= initialValue;
646
context.BindingMetadata.
IsBindingAllowed
= initialValue;
ModelBinding\Metadata\DefaultModelMetadataTest.cs (1)
302
IsBindingAllowed
= false, // Will be ignored.
ModelBinding\Metadata\ExcludeBindingMetadataProviderTest.cs (2)
23
context.BindingMetadata.
IsBindingAllowed
= initialValue;
47
context.BindingMetadata.
IsBindingAllowed
= initialValue;
ModelBinding\ModelBinderFactoryTest.cs (1)
105
.BindingDetails(m => m.
IsBindingAllowed
= false);
24 references to IsBindingAllowed
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Metadata\DefaultModelMetadata.cs (1)
256
return BindingMetadata.
IsBindingAllowed
;
Microsoft.AspNetCore.Mvc.Core.Test (23)
ModelBinding\Metadata\DefaultBindingMetadataProviderTest.cs (21)
171
Assert.False(context.BindingMetadata.
IsBindingAllowed
);
194
Assert.False(context.BindingMetadata.
IsBindingAllowed
);
217
Assert.True(context.BindingMetadata.
IsBindingAllowed
);
240
Assert.True(context.BindingMetadata.
IsBindingAllowed
);
263
Assert.True(context.BindingMetadata.
IsBindingAllowed
);
286
Assert.False(context.BindingMetadata.
IsBindingAllowed
);
309
Assert.False(context.BindingMetadata.
IsBindingAllowed
);
332
Assert.True(context.BindingMetadata.
IsBindingAllowed
);
355
Assert.True(context.BindingMetadata.
IsBindingAllowed
);
378
Assert.True(context.BindingMetadata.
IsBindingAllowed
);
430
Assert.True(context.BindingMetadata.
IsBindingAllowed
);
448
Assert.True(context.BindingMetadata.
IsBindingAllowed
);
466
Assert.False(context.BindingMetadata.
IsBindingAllowed
);
484
Assert.False(context.BindingMetadata.
IsBindingAllowed
);
507
Assert.True(context.BindingMetadata.
IsBindingAllowed
);
530
Assert.True(context.BindingMetadata.
IsBindingAllowed
);
553
Assert.True(context.BindingMetadata.
IsBindingAllowed
);
576
Assert.False(context.BindingMetadata.
IsBindingAllowed
);
595
Assert.True(context.BindingMetadata.
IsBindingAllowed
);
624
Assert.Equal(initialValue, context.BindingMetadata.
IsBindingAllowed
);
655
Assert.Equal(initialValue, context.BindingMetadata.
IsBindingAllowed
);
ModelBinding\Metadata\ExcludeBindingMetadataProviderTest.cs (2)
29
Assert.Equal(initialValue, context.BindingMetadata.
IsBindingAllowed
);
53
Assert.False(context.BindingMetadata.
IsBindingAllowed
);