WF4: How to Unit Test a Workflow that calls a WCF Service

“The important point is that our test can’t control what that dependency returns to our code under test or how it behaves (if we wanted to simulate an exception, for example). That’s when we use stubs.” – The Art of Unit Testing – Roy Osherove, Yesterday morning I received an email from Ryo in Belgium…

3

Windows Server AppFabric and the new Web Platform Installer (3.0)

When the new Web Platform Installer (3.0) was released I had trouble finding Windows Server AppFabric.  The new UI can be a little confusing so to save you some trouble here are the instructions for installing Windows Server AppFabric. The Simple Way Use this link it will launch the web platform installer and just install…

0

WCF: 4 Tenets of Service Oriented Data Validation

Remember the 4 tenets of SOA?  One of them is that Boundaries are explicit.  When somebody sends data to your service it is just like when you cross an international border into another country.  Just a couple of hours drive north of us in Redmond is the border crossing to Canada.  When you cross into…

3

WCF Spike FaultContract, FaultException<TDetail> and Validation

Ready to have some fun? Today I spent the day investigating WCF FaulContracts and FaultException and some best practices for argument validation.  I’m going to do the same in a future post on Workflow Services but I felt it best to really understand the topic from a WCF point of view first. Investigation Questions What…

1

WF4 Versioning Spike: How To Unit Test Activity Versioning

With the work I’ve been doing on versioning I’ve had to write unit tests that verify the behavior I expect from the helper classes in Microsoft.Activities.dll.  If you want to verify that your assembly versioning strategy is working correctly you may have to do similar testing.  This sort of testing is tricky… in this post…

0

WF4 Versioning Spike: IIS Hosted Workflow Services

In my previous post, I’ve been exploring how changing the version of an ActivityLibrary affects a workflow.  In this post I want to explore how Workflow Services behave. The good news – as far as I can tell, they behave exactly as they should behave loading the assembly version they were built with.  For this…

0

WF4 Activity Versioning Solution

In my last post I showed you how the _XamlStaticHelper class uses different semantics when loading assemblies referenced by XAML files. Today I’m going to show you a solution I’ve built into the Microsoft.Activities library that can help you apply standard CLR behavior when loading referenced assemblies. endpoint.tv – How To Make WF4 Load the…

0

WF4 Spike: Activity Versioning, GAC and Loose XAML

In agile software development, a spike is a story that cannot be estimated until a development team runs a timeboxed investigation. The output of a spike story is an estimate for the original story. – SearchSoftwareQuality.com Definitions Update 1/8/2011: For a solution to these problems see this post.  Special thanks to Krisragh for his help…

5

endpoint.tv – A Better State Machine Driven WPF UI

I couldn’t leave this one alone.  While I was making the last episode I said that there was possibly another strategy for detecting states and transitions and that was to use Tracking data.  In this episode I’ll show you a better way to implement our WPF UI using the Model View View-Model (MVVM) pattern that…

0