public void Setup()
        {
            _elasticsearchMappingResolver.AddElasticSearchMappingForEntityType(typeof(object), new GlobalElasticsearchMapping());
            using (var context = new ElasticsearchContext(ConnectionString, _elasticsearchMappingResolver))
            {
                var doc1 = new IndexOne
                {
                    Id           = 1,
                    RandomNumber = 49.3
                };
                var doc2 = new IndexOne
                {
                    Id           = 2,
                    RandomNumber = 49.3
                };
                var doc3 = new IndexTwo
                {
                    Id          = 1,
                    Description = "nice day"
                };

                context.IndexCreate <IndexOne>();
                context.IndexCreate <IndexTwo>();
                Thread.Sleep(1200);
                context.AddUpdateDocument(doc1, doc1.Id);
                context.AddUpdateDocument(doc2, doc2.Id);
                context.AddUpdateDocument(doc3, doc3.Id);
                context.SaveChanges();
                Thread.Sleep(1200);
            }
        }
        public void Setup()
        {
            _elasticsearchMappingResolver.AddElasticSearchMappingForEntityType(typeof(object), new GlobalElasticsearchMapping());
            using (var context = new ElasticsearchContext(ConnectionString, _elasticsearchMappingResolver))
            {
                var doc1 = new IndexOne
                {
                    Id = 1,
                    RandomNumber = 49.3
                };
                var doc2 = new IndexOne
                {
                    Id = 2,
                    RandomNumber = 49.3
                };
                var doc3 = new IndexTwo
                {
                    Id = 1,
                    Description = "nice day"
                };

                context.IndexCreate<IndexOne>();
                context.IndexCreate<IndexTwo>();
                Thread.Sleep(1200);
                context.AddUpdateDocument(doc1, doc1.Id);
                context.AddUpdateDocument(doc2, doc2.Id);
                context.AddUpdateDocument(doc3, doc3.Id);
                context.SaveChanges();
                Thread.Sleep(1200);
            }
        }