Language

How to implement test-driven development (TDD) in ASP.NET MVC projects, and how to use mock objects.

  1. TDD with ASP.NET MVC

    This walkthrough shows you how to develop an ASP.NET MVC application in Visual Studio using the test-driven development (TDD) approach.

  2. Unit Testing

    This Pluralsight video provides an introduction to unit testing.

  3. TDD and Dependency Injection

    In this blog post, Phil Haack demonstrates Test Driven Development and Dependency Injection with ASP.NET MVC.

  4. Building Testable Applications

    Justin Etheredge shows how to design a testable ASP.NET MVC application

  5. Mocks and Tests for Role-Based Objects

    This article describes how to use TDD with mock objects to design object-oriented code in terms of roles and responsibilities, not categorization of objects into class hierarchies.

  6. Behavior-Driven Development with SpecFlow, WatiN and WatiN Test Helpers

    In this MSDN article, Brandon Satrom provides a primer on Behavior-Driven Development.

  7. Behavior-Driven Development with SpecFlow and WatiN

    This video accompanies the MSDN article and also provides a primer on Behavior-Driven Development.

  8. Behavior Driven Development (BDD) with SpecFlow and ASP.NET MVC

    In this blog post, Steve Sanderson talks about the major tools that have come out of the BDD stable.

  9. ASP.NET MVC Content Map

    See "Dependency Injection in ASP.NET MVC applications" and "Testing" in the ASP.NET MVC Content Map.

  10. Troubleshooting Windows Azure Web Sites in Visual Studio

    This tutorial shows how to use Visual Studio tools that help debug an application while it runs in a Windows Azure Web Site.

Essential Videos

Pluralsight

Microsoft has made it possible for you to enjoy this Pluralsight training free of charge. In addition, you can watch more videos free of charge from Microsoft.

1. Introduction to ASP.NET MVC 4

36 mins

2. Controllers

41 mins

3. Razor Views

52 mins

4. Working with Data (Part I)

44 mins

5. Working with Data (Part II)

48 mins

6. AJAX and ASP.NET MVC

55 mins

7. Security

55 mins

8. ASP.NET MVC 4 Infrastructure

36 mins

9. Unit Testing

35 mins

10. Deployment & Configuration

37 mins

Sponsored By: Pluralsight

Get unlimited access to hundreds of Pluralsight online courses like this one.

Starting at $29/mo.

free trial subscribe now

ASP.NET MVC Books

Microsoft's Jon Galloway recommends these books for learning ASP.NET MVC:

Pro ASP.NET MVC 4

Pro ASP.NET MVC 4

by Adam Freeman

Professional ASP.NET MVC 4

Professional ASP.NET MVC 4

by Jon Galloway, Phil Haack, Brad Wilson, K. Scott Allen