Skip to content

Commit de7b37e

Browse files
committed
Added validation to persistance of WorkflowInstance property Reference
1 parent 6e46843 commit de7b37e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/WorkflowCore.UnitTests/BasePersistenceFixture.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ public void GetWorkflowInstance_should_retrieve_workflow()
4949
Status = WorkflowStatus.Runnable,
5050
NextExecution = 0,
5151
Version = 1,
52-
WorkflowDefinitionId = "My Workflow"
52+
WorkflowDefinitionId = "My Workflow",
53+
Reference = "My Reference"
5354
};
5455
workflow.ExecutionPointers.Add(new ExecutionPointer()
5556
{
@@ -76,7 +77,8 @@ public void PersistWorkflow()
7677
NextExecution = 0,
7778
Version = 1,
7879
WorkflowDefinitionId = "My Workflow",
79-
CreateTime = new DateTime(2000, 1, 1).ToUniversalTime()
80+
CreateTime = new DateTime(2000, 1, 1).ToUniversalTime(),
81+
Reference = "My Reference"
8082
};
8183
oldWorkflow.ExecutionPointers.Add(new ExecutionPointer()
8284
{
@@ -87,6 +89,7 @@ public void PersistWorkflow()
8789
var workflowId = Subject.CreateNewWorkflow(oldWorkflow).Result;
8890
var newWorkflow = Utils.DeepCopy(oldWorkflow);
8991
newWorkflow.Data = oldWorkflow.Data;
92+
newWorkflow.Reference = oldWorkflow.Reference;
9093
newWorkflow.NextExecution = 7;
9194
newWorkflow.ExecutionPointers.Add(new ExecutionPointer() { Id = Guid.NewGuid().ToString(), Active = true, StepId = 1 });
9295

0 commit comments

Comments
 (0)