Ok, this is my follow-up post to .Net Framework Profiles, where I very naïvely though I persistence in WF4 was all about using the correct target framework. As it turned out, they changed the persistence model between beta 1 and beta 2, and the tutorial was apparently written for beta 1. So here’s my changes to the Microsoft tutorial How to: Create and Run a Long Running Workflow in order to make it work for Windows Workflow Foundation 4 beta 2. The persistence database First of all, since t...
UPDATE 2: I have now written a post describing how I got persistence working in WF4 beta 2. UPDATE: Seems that they have changed just about everything concerning persistence from WF4 beta 1 to beta 2. So the forth part of the tutorial I’m referring to doesn’t seem to work at all for beta 2. I’ll have to do a follow-up on how it works once I’ve figured it out. /J Since we are going to use Windows Workflow Foundation 4 in our new project, I though I’d better learn the basics of it. So I found Mi...
Had another interesting problem today. A test that really should have worked started failing most of the time. The test was designed to make sure that a certain DateTime value did not change on update under a special circumstance. It was designed something like this: [TestMethod]
public void Updating_Foo_Will_Not_Update_ChangeDate()
{
//Create a Foo to work with
Foo foo = new Foo()
{
Name = "Update test foo",
};
foo = repository.SaveFoo( foo );
DateTime lastChan...