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,8 +25,6 @@ public class ResultQueryTests : RecApplicationTestBase
|
||||
|
||||
var invalidActionId = long.MaxValue;
|
||||
|
||||
try
|
||||
{
|
||||
await sender.Send(new ReadResultViewQuery
|
||||
{
|
||||
ActionId = invalidActionId
|
||||
@@ -35,4 +33,3 @@ public class ResultQueryTests : RecApplicationTestBase
|
||||
Assert.Pass("Read completed for unknown action id.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user