Skip to content

Instantly share code, notes, and snippets.

@ManfredLange
Created September 26, 2021 02:15
Show Gist options
  • Save ManfredLange/cab72916727df3638882a57fe05685f8 to your computer and use it in GitHub Desktop.
Save ManfredLange/cab72916727df3638882a57fe05685f8 to your computer and use it in GitHub Desktop.
using Microsoft.Extensions.Configuration;
using NUnit.Framework;
namespace CosmosDbTest
{
[SetUpFixture]
public static class TestSuite
{
static TestSuite()
{
var builder = new ConfigurationBuilder();
const string environmentName = "Local";
builder
.AddJsonFile($"appsettings.{environmentName}.json", optional: true, reloadOnChange: true)
;
Configuration = builder.Build();
}
public static readonly IConfiguration Configuration;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment