Unit Tests: Mocks for Commands, Stubs for Queries

When unit testing, use Mocks for Commands, and Stubs for Queries.

Worth reading! – http://blog.ploeh.dk/2013/10/23/mocks-for-commands-stubs-for-queries/

Advertisements