docs: work on README
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user