refactor: simplify test code in ResultQueryTests
- Remove unnecessary try-catch block in ShouldRead_Invalid_RecActionView test - Code now directly awaits the query execution without exception handling - Improves test readability and clarity
This commit is contained in:
@@ -25,14 +25,11 @@ public class ResultQueryTests : RecApplicationTestBase
|
||||
|
||||
var invalidActionId = long.MaxValue;
|
||||
|
||||
try
|
||||
await sender.Send(new ReadResultViewQuery
|
||||
{
|
||||
await sender.Send(new ReadResultViewQuery
|
||||
{
|
||||
ActionId = invalidActionId
|
||||
});
|
||||
ActionId = invalidActionId
|
||||
});
|
||||
|
||||
Assert.Pass("Read completed for unknown action id.");
|
||||
}
|
||||
Assert.Pass("Read completed for unknown action id.");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user