public StandaloneAzureSettingsTests() { _settings = new StandaloneAzureSettings(new StandaloneConfiguration { ConfigurationPath = "ServiceConfiguration.Local.cscfg", RoleName = "TestWorkerRole" }); }
public void CanRetrieveSettingFromFile() { var settings = new StandaloneAzureSettings(new StandaloneConfiguration { ConfigurationPath = "ServiceConfiguration.Local.cscfg", RoleName = "TestWorkerRole" }); Assert.Equal("Running locally", settings["RandomSetting"]); }
public LightBlueAppDomainContext(string configurationPath, string serviceDefinitionPath, string roleName, bool useHostedStorage) { _roleName = roleName; var configuration = new StandaloneConfiguration { ConfigurationPath = configurationPath, ServiceDefinitionPath = serviceDefinitionPath, RoleName = roleName, UseHostedStorage = useHostedStorage, }; _settings = new StandaloneAzureSettings(configuration); _localResources = new StandaloneAzureLocalResourceSource(configuration, StandaloneEnvironment.LightBlueDataDirectory); }