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