I have an object that I am trying to make fun of with moq. The constructor of the object has the necessary parameters:
public class CustomerSyncEngine { public CustomerSyncEngine(ILoggingProvider loggingProvider, ICrmProvider crmProvider, ICacheProvider cacheProvider) { ... } }
Now I'm trying to create a layout for this object using the syntax moq v3 "setup" or v4 "Mock.Of", but I canβt figure it out ... everything I try does not check. Here is what I still have, but the last line gives me the real object, not the layout. The reason I do this is because I have methods on CustomerSyncEngine that I want to test, is called ...
moq
Andrew Connell Sep 14 '11 at 10:22 2011-09-14 10:22
source share