public void IdIsLoadedTrackerId() { using (var testdb = new SqlWorkflowInstanceStoreTest()) { // Arrange var view = new TestWorkflowView(testdb.CreateInstanceStore()); var model = new WorkflowModel(view); // Create and run the workflow var id = model.New(); // Act // Load the instances from the datbase model.LoadInstances(view); // Get the id from the state tracker var hostid = model.CurrentInstance.Id; // Assert Assert.AreEqual(hostid, id); } }