Skip to content

Selective Unit Testing – Costs and Benefits

Great article describing where is it beneficial to use unit testing.  I agree with Steve I’d rather spend an hour writing integration tests to prove the whole system works together in some scenario, rather unit testing a trivial code of my web application controllers.

Sanderson S., (2009, November). Selective Unit Testing – Costs and Benefits. Retrieved December 13, 2010, from
http://blog.stevensanderson.com/2009/11/04/selective-unit-testing-costs-and-benefits/

Employing the Domain Model Pattern

This article by Udi Dahan describes techniques how to keep the business in the domain using domain events for more complex interactions. A typical scenraio is “When a customer has become a [something] the system should [do something].” where there may be several use cases how to become a [something] and we don’t want to duplicate code, nor handle event subscriptions in the code calling the domain model.

Dahan U., (2009, August). Employing the Domain Model Pattern. Retrieved December 8, 2010, from

http://msdn.microsoft.com/en-us/magazine/ee236415.aspx