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:
2026-05-21 12:53:29 +02:00
parent f66fbb30e8
commit f4240b6452
2 changed files with 4 additions and 3 deletions

View File

@@ -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)
{