aspnetcore/test/Microsoft.AspNetCore.Mvc.Vi.../Rendering
Doug Bunting a0c8834c70 Preserve existing metadata in `ViewDataDictionary` where possible
- #4116
- generalize rules for `ModelMetadata` creation; minimize metadata changes when Model is updated
 - down to a single special case in VDD for `Nullable<T>`
 - note existing functional tests did not need to change
- remove `ViewDataDictionary(ViewDataDictionary, object)` constructor; use `new VDD<object>(source, model)`
- allow all `Model` assignments in a view component
 - copy-constructed VDD in `ViewComponentContext` previously preserved the source's declared type

nits:
- do not call `virtual SetModel()` method from constructor; now mostly redundant
 - logic in copy constructor and `SetModel()` is consistent but different enough to keep code separate
- add some missing doc comments
- fix doc comment property versus type confusion; never need to specify `ViewDataDictionary.` prefix
- fix a few `TemplateBuilder` comments and remove unnecessary `model: null` argument to VDD constructor
2016-04-08 14:44:36 -07:00
..
DefaultTemplatesUtilities.cs Preserve existing metadata in `ViewDataDictionary` where possible 2016-04-08 14:44:36 -07:00
HtmlHelperCheckboxTest.cs
HtmlHelperDisplayNameExtensionsTest.cs
HtmlHelperDisplayTextTest.cs Use a prefix tree as a backing store for ModelStateDictionary 2016-03-17 10:09:36 -07:00
HtmlHelperDropDownListExtensionsTest.cs Added tests for DropDownList and ListBox extensions 2016-03-22 16:51:27 -07:00
HtmlHelperFormExtensionsTest.cs
HtmlHelperFormTest.cs Added tests for DropDownList and ListBox extensions 2016-03-22 16:51:27 -07:00
HtmlHelperHiddenTest.cs Use a prefix tree as a backing store for ModelStateDictionary 2016-03-17 10:09:36 -07:00
HtmlHelperLabelExtensionsTest.cs
HtmlHelperLinkGenerationTest.cs
HtmlHelperListBoxExtensionsTest.cs Added tests for DropDownList and ListBox extensions 2016-03-22 16:51:27 -07:00
HtmlHelperNameExtensionsTest.cs
HtmlHelperPartialExtensionsTest.cs
HtmlHelperPasswordTest.cs Use a prefix tree as a backing store for ModelStateDictionary 2016-03-17 10:09:36 -07:00
HtmlHelperRadioButtonExtensionsTest.cs
HtmlHelperSelectTest.cs Use a prefix tree as a backing store for ModelStateDictionary 2016-03-17 10:09:36 -07:00
HtmlHelperTest.cs
HtmlHelperTextAreaExtensionsTest.cs
HtmlHelperTextBoxExtensionsTest.cs
HtmlHelperTextBoxTest.cs
HtmlHelperValidationMessageExtensionsTest.cs
HtmlHelperValidationSummaryTest.cs Use a prefix tree as a backing store for ModelStateDictionary 2016-03-17 10:09:36 -07:00
HtmlHelperValueTest.cs Use a prefix tree as a backing store for ModelStateDictionary 2016-03-17 10:09:36 -07:00
HtmlStringTest.cs
TagBuilderTest.cs
TestResources.cs
ViewContextTests.cs React to HttpAbstractions namespace changes 2016-03-30 16:19:42 -07:00