Sponsored By Aspose - File Format APIs for .NET

Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!

Monthly Archives: April 2011

Why use the command processor pattern in the service layer

Using a Command Processor When we think about a layered or hexagonal architecture it is common to identify the need for a service layer. The service layer both provides a facade over our domain layer to applications – acting as … Continue reading 

Posted in CQRS, DDD, Events, Object-Orientation, SOLID, Uncategorized | 15 Comments

Why Repository SaveUpdate is a smell

One of the idioms I see a fair amount of is the SaveUpdate method on a Repository. The intent is usually to persist an item to storage, using a SaveUpdate method to lazily avoid the question of whether it is … Continue reading 

Posted in .Net, DDD, NHibernate, ORM | 5 Comments

Mocks and Tell Don’t Ask

One of our alumni Karl blogged a request recently for folks to stop using mocks. Once upon a time I also made clear that I had a significant distrust of mocks. I’ve mellowed on that position over time, so I … Continue reading 

Posted in .Net, Agile, BDD, Behavior Specification, Mocks, Object-Orientation, Stubs, TDD | 6 Comments