25 lines
801 B
C#
25 lines
801 B
C#
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using System.IO;
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
namespace Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test.Utilities
|
|
{
|
|
public static class TestEnvironment
|
|
{
|
|
public static IConfiguration Config { get; }
|
|
|
|
static TestEnvironment()
|
|
{
|
|
var configBuilder = new ConfigurationBuilder()
|
|
.SetBasePath(Directory.GetCurrentDirectory())
|
|
.AddJsonFile("config.json", optional: true)
|
|
.AddJsonFile("config.test.json", optional: true)
|
|
.AddEnvironmentVariables();
|
|
|
|
Config = configBuilder.Build();
|
|
}
|
|
}
|
|
}
|