How-to Mock WCF Services Proxies with Rhino Mocks ?
+2
A:
Create your service so that it implements an interface. Then you can either mock the interface in your client or create a fake implementation of the interface to use in your tests.
tvanfosson
2009-01-10 17:23:32
Just edited my question, I want to test my WCF Proxy
Yoann. B
2009-01-10 17:26:43
I would say that is more of an integration test than a unit test and I wouldn't use mocking. Create a "fake" service with a different endpoint and test against that.
tvanfosson
2009-01-10 17:33:39
A:
you mock service interface like any regular .net interface. No special steps needed.
Krzysztof Koźmic
2009-01-10 17:29:34