I\'ve got an app which is using a WCF service. Now I\'d like to add unit tests to the app.
For some cases I need to mock the WCF service, since getting the desired b
Why can't you use something like NMock2 to mock the IMyWcfService interfaces directly?
If you need to be able to create new instances on the fly, use the Factory to hide the ChannelFactory from the client. This way you can replace the factory, providing the client one which creates mocks instead of real proxies.