mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
17 lines
568 B
C#
17 lines
568 B
C#
using Bit.Core.Settings;
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
namespace Bit.Test.Common.Helpers.Factories
|
|
{
|
|
public static class GlobalSettingsFactory
|
|
{
|
|
public static GlobalSettings GlobalSettings { get; } = new GlobalSettings();
|
|
static GlobalSettingsFactory()
|
|
{
|
|
var configBuilder = new ConfigurationBuilder().AddUserSecrets<Bit.Api.Startup>();
|
|
var Configuration = configBuilder.Build();
|
|
ConfigurationBinder.Bind(Configuration.GetSection("GlobalSettings"), GlobalSettings);
|
|
}
|
|
}
|
|
}
|