public void WorkflowInstanceCreationTest() { var workflowTemplate = _workflowEngine.LoadWorkflowTemplate("WFT123456"); var session = _workflowEngine.NewSession(); var instance = session.NewWorkflowInstance(workflowTemplate, "CONTRACT", "123"); Assert.NotNull(instance); Assert.AreEqual(workflowTemplate, instance.WorkflowTemplate); Assert.AreEqual(session.CurrentUser, instance.Owner); Assert.AreEqual(true, instance.IsNew); Assert.AreEqual(true, instance.IsDirty); Assert.AreEqual(false, instance.IsTransient); }