Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I mock out a call to a WCF Service when using a Send or SendReceive activity in WF4?

So as apart of my workflow I need to make a call to an external WCF Service to retrieve some objects. The problem is I can't see how to mock out the WCF Service that will be called by the send activity. Does anyone know how I can do this?

Thanks, John

like image 278
John Mc Avatar asked Aug 10 '10 11:08

John Mc


1 Answers

The best answer I've found so far comes from Ron Jacobs who has done a couple of blog posts on this post using his XamlInjector. This is the latest one:

http://blogs.msdn.com/b/rjacobs/archive/2011/01/20/wf4-how-to-unit-test-a-workflow-that-calls-a-wcf-service.aspx

like image 127
John Mc Avatar answered Oct 11 '22 10:10

John Mc