Mocking a WCF client, with a parameterised constructor for .net component called from COM
问题 I'm struggling to find a way forward here. I have a VB6 screen, which i need to call a .Net 'adapter' component, which calls out to a WCF service. The WCF service is under windows authentication as i want to detect the windows logon of the user calling the functionality. The service reference is in the .Net adapter. To get this to work i have had to add detail to a binding, specifying the security, which all works fine in the real world. My problem is unit testing this, and trying to mock the