aspnetcore/test/WebSites/RazorWebSite/Controllers
Doug Bunting eee1a9fef4 Do not generate a validation summary when `excludePropertyErrors` unless specific model has an error
- #5209
- update affected `HtmlHelperValiationSummaryTest` and functional tests
- add `ValidationSummaryTagHelperTest` tests to cover related scenarios

##### Behaviour changes when no errors exist for the model:
###### Tag helper
``` html
<div asp-validation-summary="ModelOnly" class="order"><h3>Oopsie<h3></div>
```
previously generated
``` html
<div class="order validation-summary-errors"><h3>Oopsie</h3><ul><li style="display:none"></li>
</ul></div>
```
and now generates
``` html
<div class="order"><h3>Oopsie</h3></div>
```
###### HTML helper
``` c#
@Html.ValidationSummary(excludePropertyErrors: true, message: "Oopsie")
```
previously generated
``` html
<div class=\"validation-summary-errors\"><span>Oopsie</span>
<ul><li style=\"display:none\"></li>
</ul></div>
```
and now generates nothing (`@HtmlString.Empty`).
2016-09-08 15:36:47 -07:00
..
DirectivesController.cs Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
ExpanderViewsController.cs Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
FlushPoint.cs Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
HtmlHelperOptionsController.cs Do not generate a validation summary when `excludePropertyErrors` unless specific model has an error 2016-09-08 15:36:47 -07:00
NestedViewStartsController.cs Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
PartialViewEngineController.cs * Give message correct path. 2016-02-02 11:08:41 -08:00
PartialsWithLayoutController.cs Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
TemplateExpander.cs Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
UrlResolutionController.cs Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
ViewEngineController.cs Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
ViewNameSpecification_HomeController.cs Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
ViewWithPathsController.cs Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
ViewsConsumingCompilationOptionsController.cs Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00