c# - How to mock a webservice using ClientBase -
I am a customer for a Web service implemented with the following interface and legacy:
public partial class FixLinkReportingServiceClient: System.ServiceModel.ClientBase & lt; STPTradeRetriever.FixLinkReportingService.IFixLinkReportingService & gt;, STPTradeRetriever.FixLinkReportingService.IFixLinkReportingService {....}
How Should I Go as fun objects and especially if I try to do the following :
Public class FakeSuccessConnection: ClientBege & lt; STPTradeRetriever.FixLinkReportingService.IFixLinkReportingService & gt;, STPTradeRetriever.FixLinkReportingService.IFixLinkReportingService {}
It will complain about the lack of end points in the app.config:
< code> default termination could not find the element that references contract configu ration section 'FixLinkReportingService.IFixLinkReportingService' service model client could be because there was no configuration file for your application, or a conclusion that matches the contract Point element clue The print can not find ingredients.
Comments
Post a Comment