Over the years, I’ve gotten a lot of requests for non-trivial examples of code entirely written using TDD and Simple Design. I can finally give you that example.
This code is for the Offline Application Block, part of Microsoft’s Smart Client initiative. Basically, it implements a framework that will allow client code to operate in much the same way, whether it is connected to the internet or not. It was written over a period of about 12 weeks, and was done entirely test first.
Due to legal restrictions, Microsoft is unable to release unit tests along with the application block, but the unit tests are available through the
GotDotNet Smart Client workspace. You’ll have to join the workspace to see them, but if you want examples, it should be worth it.
I’d also welcome any kinds of questions about the design, the tests, or how the block was written.