Best way to mock WCF Client proxy
Posted
by chugh97
on Stack Overflow
See other posts from Stack Overflow
or by chugh97
Published on 2010-03-24T16:11:09Z
Indexed on
2010/03/24
16:13 UTC
Read the original article
Hit count: 998
Are there any ways to mock a WCF client proxy using Rhino mocks framework so I have access to the Channel property? I am trying to unit test Proxy.Close() method but as the proxy is constructed using the abstract base class ClientBast which has the ICommunication interface, my unit test is failing as the internal infrastructure of the class is absent in the mock object. Any good ways with code samples would be greatly appreciated.
© Stack Overflow or respective owner