You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
507 B
15 lines
507 B
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); |
|
} |
|
}
|
|
|