Old TDD Demo Blog - Digest and Code
Several of you have emailed me over the past several months asking if I had a copy of the blog text and/or code that I had mentioned in a much earlier blog entry. As it turns out, a good friend of mine found some old archived versions of the site on an Internet cache and set them over to me. Therefore, I have taken the web pages and compiled them into an XPS document so that you can see the thought progression that went along with building a small application, TDD style.
Additionally, I've updated the code samples a bit. Specifically, I've upgraded the version of NHibernate to 1.2.1.GA - and as such, dropped the use of Ayende's NHibernate Generics library. Also, as I was going through my NHibernate mappings, I realized that I had been pretty lazy with regard to semantic accuracy for collection types - I had pretty much completely used <bag> mappings instead <set> mappings for unordered collections so that I could use IList<T>. Therefore, I cleaned that up a bit. Other than that, the only other thing that I did was update some of the looping and conditional code to use LINQ.
Finally, let me emphatically throw out the "Demoware Disclaimer" - The point of the blog and the code samples was to illustrate the thought process and corresponding code behind using TDD to design a domain model. As a result, everything else in the code is the simplest thing that could be implemented to support the overall goal - and nothing more.
Comment Notification
If you would like to receive an email when updates are made to this post, please register here
Subscribe to this post's comments using
I am currently the Editor-in-Chief for MSDN Magazine. I joined Microsoft in 2006 as a product planner with the certification team at Microsoft Learning. Prior to that, I spent my career as a developer and later as an architect. My main technology passions include pretty much anything on language theory, agile development, and service-oriented architecture.