aspnet/Mvc — pull request #1530 by dougbu (2014-11-10 05:54:38+00:00)
Title: Add `BeginRouteForm()` HTML helper (#437)

- refactor `DefaultHtmlGenerator.GenerateForm()` to support new method

- also test `Html.BeginForm()`, which was previously untested (touching on #453)
- provide a `DefaultTemplatesUtilities.GetHtmlHelper()` overload with an
`IHtmlGenerator` parameter
- update `DefaultTemplateUtilities` to use `DefaultHttpContext`
- stop using a mock for this purpose; provides a non-`null` `Request`

nits:
- correct XML comments
- add a few more code comments
- `DefaultTemplatesUtilities.GetHtmlHelperForViewData()` -> `...GetHtmlHelper()`
for consistency with other overloads