如何-嘲弄WCF服务?WCF

2023-09-05 02:56:47 作者:独揽帅氕

如何-嘲弄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.