Creating a generic test base class that will mock dependencies

castle windsor    dependency injection    design patterns    unit testing
A base test class using Castle Windsor and the ILazyComponentLoader so I don't have to manually setup my mocks. Uses NSubstitute and NUnit too.

Encapsulating repository queries

design patterns    domain driven design    linq to sql    nhibernate
I've moved away from putting query (eg GetCondition / FindCondition) o n my repositories. Now I create queries objects for each would be method. Why?

Modelling and programming entities that have state and participate in workflow

design patterns
Workflow and State changes in C# business applications.