protected override void When()
            {
                var conf = new ElasticClientConfiguration(new Uri(ElasticUrl), ElasticUsername, ElasticPassword);

                _factory = conf.CreateClientFactory() as ElasticClientFactory;
                _factory.CreateClient();
            }