1 write to Value
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\Metadata\DefaultModelMetadataProviderTest.cs (1)
463
Value
= value;
17 references to Value
Microsoft.AspNetCore.Mvc.Core.Test (17)
ModelBinding\Metadata\DefaultModelMetadataProviderTest.cs (17)
24
Assert.Equal("OnType", attribute.
Value
);
164
Assert.Equal("OnProperty", Assert.IsType<ModelAttribute>(attributes[0]).
Value
);
165
Assert.Equal("OnPropertyType", Assert.IsType<ModelAttribute>(attributes[1]).
Value
);
238
Assert.Equal("ParamAttrib1", modelAttribute.
Value
);
243
Assert.Equal("ParamAttrib2", modelAttribute.
Value
);
284
a => Assert.Equal("OnParameter", Assert.IsType<ModelAttribute>(a).
Value
),
285
a => Assert.Equal("OnDerivedType", Assert.IsType<ModelAttribute>(a).
Value
),
286
a => Assert.Equal("OnType", Assert.IsType<ModelAttribute>(a).
Value
));
297
a => Assert.Equal("OnDerivedProperty", Assert.IsType<ModelAttribute>(a).
Value
));
306
a => Assert.Equal("OnProperty", Assert.IsType<ModelAttribute>(a).
Value
),
307
a => Assert.Equal("OnPropertyType", Assert.IsType<ModelAttribute>(a).
Value
));
368
a => Assert.Equal("OnProperty", Assert.IsType<ModelAttribute>(a).
Value
),
369
a => Assert.Equal("OnDerivedType", Assert.IsType<ModelAttribute>(a).
Value
),
370
a => Assert.Equal("OnType", Assert.IsType<ModelAttribute>(a).
Value
));
381
a => Assert.Equal("OnDerivedProperty", Assert.IsType<ModelAttribute>(a).
Value
));
390
a => Assert.Equal("OnProperty", Assert.IsType<ModelAttribute>(a).
Value
),
391
a => Assert.Equal("OnPropertyType", Assert.IsType<ModelAttribute>(a).
Value
));