private void RegisterHearingServices(TestContext context) { context.WebConfig.VhServices = GetTargetTestEnvironment() == string.Empty ? Options.Create(_configRoot.GetSection("VhServices").Get <AdminWebVhServiceConfig>()).Value : Options.Create(_configRoot.GetSection($"Testing.{GetTargetTestEnvironment()}.VhServices").Get <AdminWebVhServiceConfig>()).Value; if (context.WebConfig.VhServices == null && GetTargetTestEnvironment() != string.Empty) { throw new TestSecretsFileMissingException(GetTargetTestEnvironment()); } ConfigurationManager.VerifyConfigValuesSet(context.WebConfig.VhServices); }
private void RegisterNotifySettings(TestContext context) { context.WebConfig.NotifyConfiguration = Options.Create(_configRoot.GetSection("NotifyConfiguration").Get <NotifyConfiguration>()).Value; ConfigurationManager.VerifyConfigValuesSet(context.WebConfig.NotifyConfiguration); }
private void RegisterAzureSecrets(TestContext context) { context.WebConfig.AzureAdConfiguration = Options.Create(_configRoot.GetSection("AzureAd").Get <AzureAdConfiguration>()).Value; ConfigurationManager.VerifyConfigValuesSet(context.WebConfig.AzureAdConfiguration); }
private void RegisterWowzaSettings(TestContext context) { context.WebConfig.Wowza = Options.Create(_configRoot.GetSection("WowzaConfiguration").Get <WowzaConfiguration>()).Value; ConfigurationManager.VerifyConfigValuesSet(context.WebConfig.Wowza); }