public void LoadShouldLoadWorkflowApp() { using (var testdb = new SqlWorkflowInstanceStoreTest()) { // Arrange var view = new TestWorkflowView(testdb.CreateInstanceStore()); var model = new WorkflowModel(view); // Create and run the workflow model.New(); model.Unload(); // Act // Load the instances from the datbase var workflowInstance = model.CurrentInstance; workflowInstance.Load(); var isLoaded = workflowInstance.IsLoaded; // Assert Assert.IsTrue(isLoaded); } }