O'Reilly logo

Programming Microsoft® ASP.NET MVC by Dino Esposito

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10. Testability and Unit Testing

In preparing for battle I have always found that plans are useless, but planning is indispensable.

Dwight D. Eisenhower

I confess I never paid much attention to unit testing until 2004. I was sitting in the audience of an ASP.NET conference session and I heard "unit testing" mentioned in the Q&A period. I think it was a comment regarding the provider model being introduced in ASP.NET 2.0 and the concept of separation of concerns (SoC) it was pushing. The comment was something like "Yes, that's really great for unit testing." All of a sudden, I found myself wondering how it was that I, as well as thousands of other developers in the community, had overlooked and even neglected unit testing for years.

It turns ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required