File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ public record TaskOptions
1515 /// </summary>
1616 /// <param name="retry">The task retry options.</param>
1717 public TaskOptions ( TaskRetryOptions ? retry )
18+ : this ( retry , null )
1819 {
19- this . Retry = retry ;
2020 }
2121
2222 /// <summary>
Original file line number Diff line number Diff line change @@ -25,18 +25,17 @@ public void Empty_Ctors_Okay()
2525 }
2626
2727 [ Fact ]
28- public void SubOrchestrationOptions_InstanceId_Overriden ( )
28+ public void SubOrchestrationOptions_InstanceId_Correct ( )
2929 {
3030 string instanceId = Guid . NewGuid ( ) . ToString ( ) ;
3131 SubOrchestrationOptions subOptions = new ( new TaskOptions ( ) , instanceId ) ;
32- subOptions . Retry . Should ( ) . BeNull ( ) ;
33- subOptions . Tags . Should ( ) . BeNull ( ) ;
34- subOptions . InstanceId . Should ( ) . BeNull ( ) ;
32+ instanceId . Equals ( subOptions . InstanceId ) . Should ( ) . BeTrue ( ) ;
3533
36- StartOrchestrationOptions startOptions = new ( ) ;
37- startOptions . Version . Should ( ) . BeNull ( ) ;
38- startOptions . InstanceId . Should ( ) . BeNull ( ) ;
39- startOptions . StartAt . Should ( ) . BeNull ( ) ;
40- startOptions . Tags . Should ( ) . BeEmpty ( ) ;
34+ string subInstanceId = Guid . NewGuid ( ) . ToString ( ) ;
35+ subOptions = new ( new SubOrchestrationOptions ( instanceId : subInstanceId ) ) ;
36+ subInstanceId . Equals ( subOptions . InstanceId ) . Should ( ) . BeTrue ( ) ;
37+
38+ subOptions = new ( new SubOrchestrationOptions ( instanceId : subInstanceId ) , instanceId ) ;
39+ instanceId . Equals ( subOptions . InstanceId ) . Should ( ) . BeTrue ( ) ;
4140 }
4241}
You can’t perform that action at this time.
0 commit comments