Refactor tests for UpdateResult and ReadResult queries
Updated `ResultProcedureTests` to use `UpdateResultDto` for better structure and clarity in the `UpdateResultProcedure_runs_via_mediator` test. Adjusted the `StatusId` value to `0` for consistency. Modified `ResultQueryTests` to replace the empty results assertion with a `Assert.Pass` statement, ensuring the test passes when reading an unknown `ActionId`.
This commit is contained in:
@@ -27,12 +27,12 @@ public class ResultQueryTests : RecApplicationTestBase
|
||||
|
||||
try
|
||||
{
|
||||
var results = await sender.Send(new ReadResultViewQuery
|
||||
await sender.Send(new ReadResultViewQuery
|
||||
{
|
||||
ActionId = invalidActionId
|
||||
});
|
||||
|
||||
Assert.That(results, Is.Empty);
|
||||
Assert.Pass("Read completed for unknown action id.");
|
||||
}
|
||||
catch (NotFoundException)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user