Test-driven development with ASP.NET MVC - where to begin?

Viewed 3906

I've read a lot about Test-Driven Development (TDD) and I find the principles very compelling, based on personal experience.

At the moment I'm developing a website for a start-up project I'm involved in, and I'd like to try my hand at putting TDD into practice.

So ... I create a blank solution in Visual Studio 2010, add an ASP.NET MVC Website project and a test project.

I also add a class library called 'Domain', for my domain objects, and a test project for that.

Now I'm wondering where to begin. Should I be writing a test before I do anything right? The question is - should I start writing tests for domain objects? If so, what exactly should I be testing for, since the domain objects don't yet exist?

Or should I be starting with the Website project and writing tests for that? If so, what should I write a test for? The Home controller / Index action?

4 Answers
Related