@@ -49,7 +49,8 @@ public void GetWorkflowInstance_should_retrieve_workflow()
49
49
Status = WorkflowStatus . Runnable ,
50
50
NextExecution = 0 ,
51
51
Version = 1 ,
52
- WorkflowDefinitionId = "My Workflow"
52
+ WorkflowDefinitionId = "My Workflow" ,
53
+ Reference = "My Reference"
53
54
} ;
54
55
workflow . ExecutionPointers . Add ( new ExecutionPointer ( )
55
56
{
@@ -76,7 +77,8 @@ public void PersistWorkflow()
76
77
NextExecution = 0 ,
77
78
Version = 1 ,
78
79
WorkflowDefinitionId = "My Workflow" ,
79
- CreateTime = new DateTime ( 2000 , 1 , 1 ) . ToUniversalTime ( )
80
+ CreateTime = new DateTime ( 2000 , 1 , 1 ) . ToUniversalTime ( ) ,
81
+ Reference = "My Reference"
80
82
} ;
81
83
oldWorkflow . ExecutionPointers . Add ( new ExecutionPointer ( )
82
84
{
@@ -87,6 +89,7 @@ public void PersistWorkflow()
87
89
var workflowId = Subject . CreateNewWorkflow ( oldWorkflow ) . Result ;
88
90
var newWorkflow = Utils . DeepCopy ( oldWorkflow ) ;
89
91
newWorkflow . Data = oldWorkflow . Data ;
92
+ newWorkflow . Reference = oldWorkflow . Reference ;
90
93
newWorkflow . NextExecution = 7 ;
91
94
newWorkflow . ExecutionPointers . Add ( new ExecutionPointer ( ) { Id = Guid . NewGuid ( ) . ToString ( ) , Active = true , StepId = 1 } ) ;
92
95
0 commit comments