endpoint.tv: endpoint.tv - How to Unit Test a WF4 Workflow that calls a WCF Service

endpoint.tv

Yesterday morning I received an email from Ryo in Belgium who asked for help in unit testing a workflow.  Ryo had read my previous posts on Microsoft.Activities.UnitTesting.XamlInjector and wanted to use it to test his workflow but was having trouble.  I gave him a quick suggestion and a little l.

Running time
0h16m
File size
7.00MB

Download Original File | View original post

Episode synopsis

Yesterday morning I received an email from Ryo in Belgium who asked for help in unit testing a workflow.  Ryo had read my previous posts on Microsoft.Activities.UnitTesting.XamlInjector and wanted to use it to test his workflow but was having trouble.  I gave him a quick suggestion and a little later he wrote back still having trouble and sent me some test code so I decided to fix it for him.  Several hours later I had a new update to Microsoft.Activities.UnitTesting which now includes stubs for messaging activities.

In this episode, I'll show you how you can replace messaging activities with stubs and also how you can supply values and behavior for the messaging activities to simulate various kinds of scenarios.  For more information see this post on my blog.

Ron Jacobs
http://blogs.msdn.com/rjacobs
Twitter: @ronljacobs

You might also like...

Comments

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Some people, when confronted with a problem, think "I know, I’ll use regular expressions." Now they have two problems.” - Jamie Zawinski