Refactor RecActionApiTests for alias consistency
Updated `using` directives in `RecActionApiTests.cs` to alias `BatchRecActionViewResponse` as `ClientBatchResponse` for consistent usage. Replaced variable type `BatchRecActionViewResponse?` with `ClientBatchResponse?` in two instances. No functional changes were made to the `Assert.Pass` statements or the `InvokeAsync` method call.
This commit is contained in:
@@ -7,6 +7,7 @@ using ReC.Application.RecActions.Commands;
|
||||
using ReC.Client;
|
||||
using ReC.Client.Api;
|
||||
using ClientInvokeReferences = ReC.Client.Api.InvokeReferences;
|
||||
using ClientBatchResponse = ReC.Client.Api.BatchRecActionViewResponse;
|
||||
|
||||
namespace ReC.Tests.Client;
|
||||
|
||||
@@ -212,14 +213,14 @@ public class RecActionApiTests : RecClientTestBase
|
||||
var (client, scope) = CreateScopedClient();
|
||||
using var _ = scope;
|
||||
|
||||
BatchRecActionViewResponse? result;
|
||||
ClientBatchResponse? result;
|
||||
try
|
||||
{
|
||||
result = await client.RecActions.InvokeAsync(profileId!.Value, new ClientInvokeReferences { BatchId = "test-batch" });
|
||||
}
|
||||
catch (ReCApiException ex)
|
||||
{
|
||||
Assert.Pass($"API returned {ex.StatusCode} — acceptable when test data is unavailable.");
|
||||
Assert.Pass($"API returned {ex.StatusCode} <EFBFBD> acceptable when test data is unavailable.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -239,14 +240,14 @@ public class RecActionApiTests : RecClientTestBase
|
||||
var (client, scope) = CreateScopedClient();
|
||||
using var _ = scope;
|
||||
|
||||
BatchRecActionViewResponse? result;
|
||||
ClientBatchResponse? result;
|
||||
try
|
||||
{
|
||||
result = await client.RecActions.InvokeAsync(profileId!.Value, "test-batch");
|
||||
}
|
||||
catch (ReCApiException ex)
|
||||
{
|
||||
Assert.Pass($"API returned {ex.StatusCode} — acceptable when test data is unavailable.");
|
||||
Assert.Pass($"API returned {ex.StatusCode} <EFBFBD> acceptable when test data is unavailable.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user