ASP.NET MVC is a radical departure from the old way of building web applications. It promises to promote testability and ease maintenance woes by encouraging a separation of concerns. While the framework certainly sets the stage for these goals, developers must answer several questions. For example, how does one test an MVC application? How can data be retrieved from an Http Form now that ViewState is gone? How much code should be in a Razor cshtml file? Join us in this session to answer these questions and more.
You will learn:
- How to test your MVC applications without a web server
- How to create custom controllers that simplify the flow of information from HTML Forms to Razor
- How to encourage View reuse and prevent common run-time exceptions with Razor