aspnetcore/test
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
..
Microsoft.AspNetCore.Mvc.Abstractions.Test Simplify BindAttribute - rename PredicateProvider 2016-03-31 12:34:02 -07:00
Microsoft.AspNetCore.Mvc.ApiExplorer.Test Added new attribute ProducesResponseTypeAttribute to enable ApiExplorer to expose response type and StatusCode. 2016-03-30 11:51:58 -07:00
Microsoft.AspNetCore.Mvc.Core.Test DefaultAssemblyPartDiscoveryProvider.IsCandidateLibrary should not look at types in Mvc assemblies 2016-04-06 08:41:12 -07:00
Microsoft.AspNetCore.Mvc.Cors.Test React to HttpAbstractions namespace changes 2016-03-30 16:19:42 -07:00
Microsoft.AspNetCore.Mvc.DataAnnotations.Test Simplify BindAttribute - rename PredicateProvider 2016-03-31 12:34:02 -07:00
Microsoft.AspNetCore.Mvc.Formatters.Json.Test JsonInputFormatter fails to use custom SerializerSettings 2016-04-05 10:19:49 -07:00
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test React to HttpAbstractions namespace changes 2016-03-30 16:19:42 -07:00
Microsoft.AspNetCore.Mvc.FunctionalTests Preserve existing metadata in `ViewDataDictionary` where possible 2016-04-08 14:44:36 -07:00
Microsoft.AspNetCore.Mvc.IntegrationTests [Fixes #4089] Add support for application parts 2016-03-31 12:14:04 -07:00
Microsoft.AspNetCore.Mvc.Localization.Test Fix for #3659 - handle IHtmlContent in localization 2016-04-08 11:20:49 -07:00
Microsoft.AspNetCore.Mvc.Razor.Host.Test [Fixes #4087] Add support for AddTagHelpersAsServices() 2016-04-02 10:32:48 -07:00
Microsoft.AspNetCore.Mvc.Razor.Test [Fixes #4087] Add support for AddTagHelpersAsServices() 2016-04-02 10:32:48 -07:00
Microsoft.AspNetCore.Mvc.TagHelpers.Test Fixing race in distributed cache tag helper 2016-04-06 09:42:24 -07:00
Microsoft.AspNetCore.Mvc.Test [Fixes #4087] Add support for AddTagHelpersAsServices() 2016-04-02 10:32:48 -07:00
Microsoft.AspNetCore.Mvc.TestCommon Introducing ModelBinderFactory 2016-03-29 15:45:14 -07:00
Microsoft.AspNetCore.Mvc.TestDiagnosticListener.Sources
Microsoft.AspNetCore.Mvc.ViewFeatures.Test Preserve existing metadata in `ViewDataDictionary` where possible 2016-04-08 14:44:36 -07:00
Microsoft.AspNetCore.Mvc.WebApiCompatShimTest [Fixes #4014] Add overload to AddControllerAsServices that uses the default controller discovery logic. 2016-04-01 09:29:37 -07:00
WebSites Preserve existing metadata in `ViewDataDictionary` where possible 2016-04-08 14:44:36 -07:00