Introduce `RecClientTestBase` to streamline integration tests for `ReCClient`. This abstract class uses `WebApplicationFactory` to create a test server for `ReC.API` and configures a `ServiceProvider` with necessary services. It includes helper methods for creating scoped `ReCClient` instances and ensures proper resource cleanup via `IDisposable`. Update `ReC.Tests.csproj` to include: - `Microsoft.AspNetCore.Mvc.Testing` package for integration testing. - Project references to `ReC.API` and `ReC.Client` for testing purposes. These changes establish a reusable and maintainable testing infrastructure.
1.4 KiB
1.4 KiB