如何-嘲弄WCF服务? [英] How-To Mock WCF Services?
本文介绍了如何-嘲弄WCF服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何-嘲弄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.
这篇关于如何-嘲弄WCF服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文