public SystemContext(ISettingsProvider settings)
        {
            this.InstanceKey = string.IsNullOrWhiteSpace(settings.Value(ElasticAnalyticsSettings.SettingsKeys.InstanceKeyKey)) ?
                "website" :
                settings.Value(ElasticAnalyticsSettings.SettingsKeys.InstanceKeyKey);

            this.SystemPrefix = string.IsNullOrWhiteSpace(settings.Value(ElasticAnalyticsSettings.SettingsKeys.SystemKey)) ?
                "EA" :
                settings.Value(ElasticAnalyticsSettings.SettingsKeys.SystemKey);
        }
        public TestIndexUtils(
            ISettingsProvider settings, 
            ISystemContext ctx,
            params IRequestConfiguration[] requestConfig)
        {
            this.ctx = ctx;
            this.requestConfigs = requestConfig;

            this.client =
                new ElasticClient(
                    new ConnectionSettings
                        (uri: new Uri(settings.Value(ElasticAnalyticsSettings.SettingsKeys.EsConnectionString)))
                        .DisableAutomaticProxyDetection(false));

            this.CreateIndices();
        }