aspnetcore/test/WebSites/ModelBindingWebSite/Controllers
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
..
BindAttributeController.cs
CompositeTestController.cs
FileUploadController.cs
FromAttributesController.cs
FromHeader_BlogController.cs Fix for #1722 - FromHeader does not respect default value 2015-01-16 17:59:00 -08:00
FromServices_CalculatorController.cs
HomeController.cs
ModelBinderAttribute_CompanyController.cs
ModelBinderAttribute_ProductController.cs
PropertiesGetCreatedController.cs
RoundtripController.cs
TryUpdateModelController.cs Fix for #1837 - Determine model type at runtime for TryUpdateModel and added a test 2015-01-27 16:36:47 -08:00
VehicleController.cs Use `[Display(Order=x)]` to sort validation messages and properties 2015-01-29 09:31:05 -08:00
WithBinderMetadataController.cs
WithoutBinderMetadataController.cs