File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
src/WorkflowManager/Common/Services
tests/UnitTests/Common.Tests/Services Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -252,12 +252,5 @@ public Task<bool> UpdateAsyncWorkflowIds(Payload payload)
252
252
253
253
return _payloadRepository . UpdateAsyncWorkflowIds ( payload ) ;
254
254
}
255
-
256
- public Task < bool > UpdateAsync ( Payload payload )
257
- {
258
- ArgumentNullException . ThrowIfNull ( payload , nameof ( payload ) ) ;
259
-
260
- return _payloadRepository . UpdateAsyncWorkflowIds ( payload ) ;
261
- }
262
255
}
263
256
}
Original file line number Diff line number Diff line change @@ -488,5 +488,16 @@ public async Task PayloadServiceCreate_Should_Call_GetExpiry()
488
488
Assert . Equal ( 99 , ( int ) daysdiff ) ;
489
489
}
490
490
491
+
492
+ [ Fact ]
493
+ public async Task UpdateAsync_NullPayload_ThrowsArgumentNullException ( )
494
+ {
495
+ // Arrange
496
+ Payload payload = null ;
497
+
498
+ // Act & Assert
499
+ await Assert . ThrowsAsync < ArgumentNullException > ( ( ) => PayloadService . UpdateAsyncWorkflowIds ( payload ) ) ;
500
+ }
501
+
491
502
}
492
503
}
You can’t perform that action at this time.
0 commit comments