Yes, this works - will have to add a someDataMock.VerifyAll otherwise the test wouldnt be testing much. Still would like to make it more specific as to what the Func I send to the someDataMock.
–
KaranJul 16 '12 at 10:27

@Newton yeh I'm not sure that it's possible to restrict the nature of Func/Action argument setups in Moq. However I would say that whichever class sends those funcs should have its own unit tests to verify that they are correct. It might not be the repositories responsibility to decide whether the callbacks it receives are correct/in context.
–
MattDaveyJul 16 '12 at 10:41