From 49e7f7a45bc88bf3686cca614f98e0cb640a026e Mon Sep 17 00:00:00 2001 From: TekH Date: Tue, 4 Aug 2026 15:29:01 +0200 Subject: [PATCH] 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. --- tests/ReC.Tests/Client/RecActionApiTests.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/ReC.Tests/Client/RecActionApiTests.cs b/tests/ReC.Tests/Client/RecActionApiTests.cs index 8cdf1b2..1c03d1a 100644 --- a/tests/ReC.Tests/Client/RecActionApiTests.cs +++ b/tests/ReC.Tests/Client/RecActionApiTests.cs @@ -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} � 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} � acceptable when test data is unavailable."); return; }