19 lines
500 B
C#
19 lines
500 B
C#
using Microsoft.Extensions.Configuration;
|
|
|
|
namespace CPATapi.Server.Tests;
|
|
|
|
public class RepositoryTestsBase
|
|
{
|
|
[OneTimeSetUp]
|
|
public void Setup()
|
|
{
|
|
// the type specified here is just so the secrets library can
|
|
// find the UserSecretId we added in the csproj file
|
|
var builder = new ConfigurationBuilder().AddUserSecrets<RepositoryTestsBase>();
|
|
|
|
Configuration = builder.Build();
|
|
}
|
|
|
|
protected IConfigurationRoot Configuration { get; private set; }
|
|
}
|