aspnetcore/test/WebSites/ModelBindingWebSite
Doug Bunting 8779cafbab Use `[Display(Order=x)]` to sort validation messages and properties
- #964
- compute `ModelMetadata.Order` based on `[Display]` attribute
 - property affects e.g. `@Html.DisplayFor()` generation for complex objects
 - also affects order of messages in validation summaries
- test new scenarios involving `ModelMetadata.Order`
 - per-property `ModelMetadata` and related tests
 - validation and `HtmlHelper` tests
 - add `HtmlHelperValidationSummaryTest` (which touches on #453)
- update ModelBinding functional test to show use of `[Display(Order = x)]`

nits:
- move more `NullDisplayText` bits into proper slots (just above `Order`)
 - add doc comments for `ComputeNullDisplayText()`
- add more assertions in tests using `ModelStateDictionary.HasReachedMaxErrors`
- remove some trailing whitespace
- avoid `Assert.True()` & `Assert.False()`; split some assertions up
- `""` -> `string.Empty` in affected test classes
- rename "DefaultEditorTemplatesTest~~s~~" class and file to follow guidelines
- rename "ModelBindingTest~~s~~" class and file to follow guidelines

FYI #1888 covers a predictable (or even just stable) order in the UI
2015-01-29 09:31:05 -08:00
..
Controllers Use `[Display(Order=x)]` to sort validation messages and properties 2015-01-29 09:31:05 -08:00
Models File upload model binder 2015-01-15 13:41:14 -08:00
Services Adding additional functional tests for ModelBinding 2014-12-16 12:25:37 -08:00
ViewModels Use `[Display(Order=x)]` to sort validation messages and properties 2015-01-29 09:31:05 -08:00
Views/Vehicle Use `[Display(Order=x)]` to sort validation messages and properties 2015-01-29 09:31:05 -08:00
wwwroot Adding proper descriptions in readme.md files for functional tests. 2015-01-15 11:12:48 -08:00
CaculatorContext.cs
DefaultCalculator.cs
DefaultCalculatorContext.cs
FromNonExistantBinderAttribute.cs
FromTestAttribute.cs
ICalculator.cs
ITestService.cs
ModelBindingWebSite.kproj
Startup.cs Modify BuilderExtensions.UseMvc to not add any routes by default 2015-01-23 16:51:38 -08:00
TestMetadataAwareBinder.cs
TestService.cs
project.json [Fixes#1792]Separate XML serializers to Microsoft.AspNet.Mvc.Xml 2015-01-22 15:09:20 -08:00