docs: work on README

This commit is contained in:
Stevan Freeborn
2024-07-03 16:57:27 -05:00
parent bd8e4c70ab
commit dd380c9253
41 changed files with 847 additions and 523 deletions
@@ -0,0 +1,23 @@
namespace AnthropicClient.Tests.Fixtures;
public class ConfigurationFixture
{
public string AnthropicApiKey { get; }
public ConfigurationFixture()
{
var configuration = new ConfigurationBuilder()
.AddJsonFile("appsettings.Test.json")
.AddEnvironmentVariables()
.Build();
var anthropicApiKey = configuration["AnthropicApiKey"];
if (string.IsNullOrEmpty(anthropicApiKey))
{
throw new InvalidOperationException("AnthropicApiKey is required");
}
AnthropicApiKey = anthropicApiKey;
}
}