Posted on 6/18/2009 10:25:47 PM by Justin Etheredge
I gave a presentation tonight at the Charlottesville .NET user group on building testable applications. The presentation was focused around the Single Responsibility Principle and the Dependency Inversion Principle. We started off with a very simple app that we slowly factored out dependencies into their own class, and then implemented a dependency injection framework (Ninject) in order to resolve our dependencies. Then we implemented a mocking framework (Moq) in order to mock our dependencies to use in testing. The application was built in a series of steps, and by popular demand I have attached to this post the final result of the application refactoring! (Popular demand, ha!)
Anyways, unlike my previous experience, this talk went really really well and I got quite a bit of good feedback from the talk. I can’t wait to give the talk again, I really wish that I had submitted it to DevLink instead of one of the other talks that I am giving.
I wanted to thank everyone who came out to see the talk, I really enjoyed giving it! I can’t wait to give it at the Richmond .NET User Group in October!
Oh, and the presentation was only a few slides with just pictures. I didn’t attach it because it really makes no sense out of context.
Source for the test project updated with start and finish project