views:

745

answers:

2

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
Just edited my question, I want to test my WCF Proxy
Yoann. B
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
A: 

you mock service interface like any regular .net interface. No special steps needed.

Krzysztof Koźmic