public void TestLoadToggleSettings()
        {
            IConfiguration configuration = InitConfiguration();

            ToggleSettings appSettings = configuration.GetSection("appSettings").Get <ToggleSettings>();

            Assert.IsNotNull(appSettings);
        }
Example #2
0
 private void Return()
 {
     ToggleSettings.ToggleSettingsMenu();
 }
Example #3
0
 public Startup(IOptions <ToggleSettings> toggleSettings, IOptions <GdasServiceSettings> gdasServiceSettings)
 {
     _toggleSettings      = toggleSettings.Value;
     _gdasServiceSettings = gdasServiceSettings.Value;
 }
 public HomeController(IOptions <ToggleSettings> toggleSettings, IOptions <GdasServiceSettings> gdasServiceSettings)
 {
     _toggleSettings      = toggleSettings.Value;
     _gdasServiceSettings = gdasServiceSettings.Value;
 }
Example #5
0
 private void Settings()
 {
     ToggleSettings.ToggleSettingsMenu();
 }
 public AppSettingsConfigurationProvider(IConfiguration configuration)
 {
     appSettings = configuration.GetSection("appSettings").Get <ToggleSettings>();
     Initialise();
 }