public void ReplaceIndexForAlias()
        {
            var indexAliasDtoTest = new IndexAliasDtoTest {
                Id = 1, Description = "Test index for aliases"
            };
            var indexAliasDtoTestTwo = new IndexAliasDtoTestTwo {
                Id = 1, Description = "Test Doc Type Two index for aliases"
            };

            using (var context = new ElasticsearchContext(ConnectionString, _elasticsearchMappingResolver))
            {
                context.AddUpdateDocument(indexAliasDtoTest, indexAliasDtoTest.Id);
                context.AddUpdateDocument(indexAliasDtoTestTwo, indexAliasDtoTestTwo.Id);
                context.SaveChanges();

                var resultCreate = context.AliasCreateForIndex("test", "indexaliasdtotests");
                Assert.IsTrue(resultCreate);

                var result = context.AliasReplaceIndex("test", "indexaliasdtotests", "indexaliasdtotesttwos");
                Assert.IsTrue(result);
            }
        }
        public void ReplaceIndexForAlias()
        {
            var indexAliasDtoTest = new IndexAliasDtoTest { Id = 1, Description = "Test index for aliases" };
            var indexAliasDtoTestTwo = new IndexAliasDtoTestTwo { Id = 1, Description = "Test Doc Type Two index for aliases" };

            using (var context = new ElasticsearchContext(ConnectionString, _elasticsearchMappingResolver))
            {
                context.AddUpdateDocument(indexAliasDtoTest, indexAliasDtoTest.Id);
                context.AddUpdateDocument(indexAliasDtoTestTwo, indexAliasDtoTestTwo.Id);
                context.SaveChanges();

                var resultCreate = context.AliasCreateForIndex("test", "indexaliasdtotests");
                Assert.IsTrue(resultCreate);

                var result = context.AliasReplaceIndex("test", "indexaliasdtotests", "indexaliasdtotesttwos");
                Assert.IsTrue(result);
            }
        }