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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s