如何-嘲弄WCF服务代理与犀牛嘲笑?
How-to Mock WCF Services Proxies with Rhino Mocks ?
创建服务,以便实现一个接口。然后,你可以模拟接口的客户端或创建一个假的接口的实现在测试中使用。
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.