From eb0befe62a1585c7fe26e0e1ff616e27b6dd52ff Mon Sep 17 00:00:00 2001 From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com> Date: Sun, 18 Aug 2024 12:53:42 -0500 Subject: [PATCH] tests: add method for creating client with customized http client --- tests/AnthropicClient.Tests/EndToEnd/EndToEndTest.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/AnthropicClient.Tests/EndToEnd/EndToEndTest.cs b/tests/AnthropicClient.Tests/EndToEnd/EndToEndTest.cs index 6e9b19b..7086d37 100644 --- a/tests/AnthropicClient.Tests/EndToEnd/EndToEndTest.cs +++ b/tests/AnthropicClient.Tests/EndToEnd/EndToEndTest.cs @@ -3,4 +3,5 @@ namespace AnthropicClient.Tests.EndToEnd; public class EndToEndTest(ConfigurationFixture configFixture) : IClassFixture { protected readonly AnthropicApiClient _client = new(configFixture.AnthropicApiKey, new()); + protected AnthropicApiClient CreateClient(HttpClient httpClient) => new(configFixture.AnthropicApiKey, httpClient); } \ No newline at end of file