@@ -379,14 +379,14 @@ public async Task CopyInstance_EverythingIsFine_ReturnsRedirect()
379379 . Setup ( p => p . GenerateProcessStartEvents ( It . IsAny < ProcessStartRequest > ( ) ) )
380380 . ReturnsAsync ( ( ) =>
381381 {
382- return new ProcessChangeResult ( ) { Success = true } ;
382+ return new ProcessChangeResult ( ) { Success = true , ProcessStateChange = new ( ) } ;
383383 } ) ;
384384 fixture
385385 . Mock < IProcessEngine > ( )
386386 . Setup ( p =>
387387 p . Start (
388388 It . IsAny < Instance > ( ) ,
389- It . IsAny < List < InstanceEvent > > ( ) ,
389+ It . IsAny < ProcessStateChange > ( ) ,
390390 It . IsAny < System . Security . Claims . ClaimsPrincipal > ( ) ,
391391 It . IsAny < Dictionary < string , string > > ( ) ,
392392 It . IsAny < string > ( ) ,
@@ -396,7 +396,7 @@ public async Task CopyInstance_EverythingIsFine_ReturnsRedirect()
396396 . ReturnsAsync (
397397 (
398398 Instance inst ,
399- List < InstanceEvent > ? _ ,
399+ ProcessStateChange _ ,
400400 System . Security . Claims . ClaimsPrincipal _ ,
401401 Dictionary < string , string > ? _ ,
402402 string ? _ ,
@@ -513,13 +513,13 @@ public async Task CopyInstance_WithBinaryData_CopiesBothFormAndBinaryData()
513513 fixture
514514 . Mock < IProcessEngine > ( )
515515 . Setup ( p => p . GenerateProcessStartEvents ( It . IsAny < ProcessStartRequest > ( ) ) )
516- . ReturnsAsync ( ( ) => new ProcessChangeResult ( ) { Success = true } ) ;
516+ . ReturnsAsync ( ( ) => new ProcessChangeResult ( ) { Success = true , ProcessStateChange = new ( ) } ) ;
517517 fixture
518518 . Mock < IProcessEngine > ( )
519519 . Setup ( p =>
520520 p . Start (
521521 It . IsAny < Instance > ( ) ,
522- It . IsAny < List < InstanceEvent > > ( ) ,
522+ It . IsAny < ProcessStateChange > ( ) ,
523523 It . IsAny < System . Security . Claims . ClaimsPrincipal > ( ) ,
524524 It . IsAny < Dictionary < string , string > > ( ) ,
525525 It . IsAny < string > ( ) ,
@@ -529,7 +529,7 @@ public async Task CopyInstance_WithBinaryData_CopiesBothFormAndBinaryData()
529529 . ReturnsAsync (
530530 (
531531 Instance inst ,
532- List < InstanceEvent > ? _ ,
532+ ProcessStateChange _ ,
533533 System . Security . Claims . ClaimsPrincipal _ ,
534534 Dictionary < string , string > ? _ ,
535535 string ? _ ,
@@ -725,13 +725,13 @@ public async Task CopyInstance_WithExcludedBinaryDataType_SkipsExcludedType()
725725 fixture
726726 . Mock < IProcessEngine > ( )
727727 . Setup ( p => p . GenerateProcessStartEvents ( It . IsAny < ProcessStartRequest > ( ) ) )
728- . ReturnsAsync ( ( ) => new ProcessChangeResult ( ) { Success = true } ) ;
728+ . ReturnsAsync ( ( ) => new ProcessChangeResult ( ) { Success = true , ProcessStateChange = new ( ) } ) ;
729729 fixture
730730 . Mock < IProcessEngine > ( )
731731 . Setup ( p =>
732732 p . Start (
733733 It . IsAny < Instance > ( ) ,
734- It . IsAny < List < InstanceEvent > > ( ) ,
734+ It . IsAny < ProcessStateChange > ( ) ,
735735 It . IsAny < System . Security . Claims . ClaimsPrincipal > ( ) ,
736736 It . IsAny < Dictionary < string , string > > ( ) ,
737737 It . IsAny < string > ( ) ,
@@ -741,7 +741,7 @@ public async Task CopyInstance_WithExcludedBinaryDataType_SkipsExcludedType()
741741 . ReturnsAsync (
742742 (
743743 Instance inst ,
744- List < InstanceEvent > ? _ ,
744+ ProcessStateChange _ ,
745745 System . Security . Claims . ClaimsPrincipal _ ,
746746 Dictionary < string , string > ? _ ,
747747 string ? _ ,
@@ -936,13 +936,13 @@ public async Task CopyInstance_IncludeAttachmentsIsTrue_CopiesBinaryData()
936936 fixture
937937 . Mock < IProcessEngine > ( )
938938 . Setup ( p => p . GenerateProcessStartEvents ( It . IsAny < ProcessStartRequest > ( ) ) )
939- . ReturnsAsync ( ( ) => new ProcessChangeResult ( ) { Success = true } ) ;
939+ . ReturnsAsync ( ( ) => new ProcessChangeResult ( ) { Success = true , ProcessStateChange = new ( ) } ) ;
940940 fixture
941941 . Mock < IProcessEngine > ( )
942942 . Setup ( p =>
943943 p . Start (
944944 It . IsAny < Instance > ( ) ,
945- It . IsAny < List < InstanceEvent > > ( ) ,
945+ It . IsAny < ProcessStateChange > ( ) ,
946946 It . IsAny < System . Security . Claims . ClaimsPrincipal > ( ) ,
947947 It . IsAny < Dictionary < string , string > > ( ) ,
948948 It . IsAny < string > ( ) ,
@@ -952,7 +952,7 @@ public async Task CopyInstance_IncludeAttachmentsIsTrue_CopiesBinaryData()
952952 . ReturnsAsync (
953953 (
954954 Instance inst ,
955- List < InstanceEvent > ? _ ,
955+ ProcessStateChange _ ,
956956 System . Security . Claims . ClaimsPrincipal _ ,
957957 Dictionary < string , string > ? _ ,
958958 string ? _ ,
@@ -1154,13 +1154,13 @@ public async Task CopyInstance_OnlyBinaryData_NotCopiedByDefault()
11541154 fixture
11551155 . Mock < IProcessEngine > ( )
11561156 . Setup ( p => p . GenerateProcessStartEvents ( It . IsAny < ProcessStartRequest > ( ) ) )
1157- . ReturnsAsync ( ( ) => new ProcessChangeResult ( ) { Success = true } ) ;
1157+ . ReturnsAsync ( ( ) => new ProcessChangeResult ( ) { Success = true , ProcessStateChange = new ( ) } ) ;
11581158 fixture
11591159 . Mock < IProcessEngine > ( )
11601160 . Setup ( p =>
11611161 p . Start (
11621162 It . IsAny < Instance > ( ) ,
1163- It . IsAny < List < InstanceEvent > > ( ) ,
1163+ It . IsAny < ProcessStateChange > ( ) ,
11641164 It . IsAny < System . Security . Claims . ClaimsPrincipal > ( ) ,
11651165 It . IsAny < Dictionary < string , string > > ( ) ,
11661166 It . IsAny < string > ( ) ,
@@ -1170,7 +1170,7 @@ public async Task CopyInstance_OnlyBinaryData_NotCopiedByDefault()
11701170 . ReturnsAsync (
11711171 (
11721172 Instance inst ,
1173- List < InstanceEvent > ? _ ,
1173+ ProcessStateChange _ ,
11741174 System . Security . Claims . ClaimsPrincipal _ ,
11751175 Dictionary < string , string > ? _ ,
11761176 string ? _ ,
0 commit comments