Use Data Flow Verification,

as described in
http://blog.ploeh.dk/2013/10/23/mocks-for-commands-stubs-for-queries/