Stephen Walther on ASP.NET MVC
-
ASP.NET MVC Tip #26 – Create a Lightweight Control View Engine
In this tip, I show you how to create a custom ASP.NET MVC view engine that supports lightweight, declarative controls. I show you how to create both simple controls and controls that display database data. I also show you how to test the rendered output of the lightweight controls.
-
ASP.NET MVC Tip #25 – Unit Test Your Views without a Web Server
In this tip, I demonstrate how you can unit test ASP.NET MVC views without running a Web server. I show you how to unit test views by creating a custom MVC View Engine and a fake Controller Context.
-
ASP.NET MVC Tip #24 – Retrieve Views from Different Folders
In this tip, I demonstrate how you can retrieve a view from any folder in an ASP.NET MVC application. I show you how to use both specific paths and relative paths.
-
ASP.NET MVC Tip #23 – Use POCO LINQ to SQL Entities
In this tip, I demonstrate how you can create LINQ to SQL entities that do not contain any special attributes. I show you how you can use an external XML file to map LINQ to SQL entities to database objects.
-
ASP.NET MVC Tip #22 -- Return a View without Creating a Controller Action
In this tip, I demonstrate how you can eliminate controller methods that simply return views. I show you how to use the HandleUnknownAction method to handle every request against a controller automatically.
-
ASP.NET MVC Tip #21 – Fake the Data Context
In this tip, I demonstrate how to create an in-memory data context class that you can use when unit testing ASP.NET MVC applications that access a database.
-
ASP.NET MVC CodePlex Preview 4
Fantastic! A new version of the ASP.NET MVC framework was released on CodePlex today. This new version of ASP.NET MVC includes support for error handling, authorization, caching, and Ajax.
-
ASP.NET MVC Tip #20 – How to Unit Test Data Access
In this tip, I demonstrate how you can write unit tests for MVC controller actions that access a database. I show you how to create unit tests for your LINQ to SQL controller action code.
-
ASP.NET MVC Tip #19 – Use the nVelocity View Engine
In this tip, I demonstrate how you can use the nVelocity view engine, instead of the normal Web Forms view engine, when displaying views from an ASP.NET MVC application.
-
ASP.NET MVC Tip #18 – Parameterize the HTTP Context
Context is the enemy of testability. In this tip, I demonstrate how you can eliminate, once and for all, the HTTP Context from an ASP.NET MVC application.