tests: add method for creating client with customized http client

This commit is contained in:
Stevan Freeborn
2024-08-18 12:53:42 -05:00
parent e04599bad9
commit eb0befe62a
@@ -3,4 +3,5 @@ namespace AnthropicClient.Tests.EndToEnd;
public class EndToEndTest(ConfigurationFixture configFixture) : IClassFixture<ConfigurationFixture>
{
protected readonly AnthropicApiClient _client = new(configFixture.AnthropicApiKey, new());
protected AnthropicApiClient CreateClient(HttpClient httpClient) => new(configFixture.AnthropicApiKey, httpClient);
}