Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.
Your profile
Tag cloud
.net android asp.net asp.net mvc azure book c# cloud computing community continuous delivery ctp database dates denali dmv functions gotcha help how to howto indexing linq nhibernate nunit performance powershell programming ruby rubymine security silverlight sql sql friday sql server sql server 2000 sql server 2005 sql server 2008 sql server 2008 r2 sql server 2012 sql server denali ssis structuremap t-sql tip trick unit testing vb.net visual studio 2010 windows 7 wpf
Authors
- SQLDenis (455)

- Christiaan Baes (chrissie1) (437)

- Ted Krueger (onpnt) (263)

- Eli Weinstock-Herman (tarwn) (92)

- Jes Schultz Borland (grrlgeek) (83)

- George Mastros (gmmastros) (46)

- Alex Ullrich (44)

- Naomi Nosonovsky (26)

- David Forck (thirster42) (20)

- chopstik (13)

- thatrickguy (12)

- sqlarcher (10)

- ca8msm (10)

- chaospandion (10)

- Rob Earl (10)

- More...
Main Categories
Search
Google Ads
Tags: rhinomocks
Continuous Delivery Project - Making MVCMusicStore Testable
It can be challenging to add unit testing to a project that was built without planning to incorporate it. The ASP.Net MVC Music Store tutorial was not built with unit testing in mind, but today we're going to walk through the addition of Controller unit tests, focusing on a controller that directly references Entity Framework objects and implicitly interacts with ASP.Net Membership objects and Request data from the current HttpContext.
Using the structuremap Automocker
I was not really convinced in the past that I should use the Structuremap Automocker for any of my tests. I don't like using the container in my tests it makes them way to dependent on something not really needed to run the test. Of course I test to see if the container is well configured and if the objects are created by the container when it is well configured (this has saved me several times before). I really only have myself to blame because I didn't really try it and only suspected what it was doing.
Well apparently I was wrong, and lucky for me I read the right blogs.

LTD Social Sitings
Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.