【发布时间】:2014-01-08 16:23:59
【问题描述】:
这是我用来通过接口IService1调用我的wcf服务方法(GetCountry)的方法。它实现了通道工厂
public IList<Country> GetCountry()
{
ChannelFactory<ServiceLibrary.IService1> channelFactory = new ChannelFactory<IService1>(binding, address);
IService1 channel1 = channelFactory.CreateChannel();
var response= channel1.GetCountry();
return response;
}
如何使用 NUNIT 模拟服务调用?
【问题讨论】:
标签: mocking nunit channelfactory