public void TestAddConfig()
        {
            using var maintainer = new ConfigIndexMaintainer(Config, Log);
            CollectionAssert.IsEmpty(maintainer.GetConfigs());

            var indexConfig1 = new IndexConfig
            {
                IndexName = "ABC"
            };

            var indexConfig2 = new IndexConfig
            {
                IndexName = "BCD"
            };

            maintainer.AddIndexConfig(indexConfig1);
            CollectionAssert.AreEquivalent(new[] { indexConfig1 }, maintainer.GetConfigs());

            maintainer.AddIndexConfig(indexConfig2);
            CollectionAssert.AreEquivalent(new[] { indexConfig1, indexConfig2 }, maintainer.GetConfigs());
        }
        public void TestEditConfig()
        {
            using var maintainer = new ConfigIndexMaintainer(Config, Log);
            var indexConfig = new IndexConfig
            {
                IndexName = "ABC"
            };

            maintainer.AddIndexConfig(indexConfig);
            CollectionAssert.AreEquivalent(new[] { indexConfig }, maintainer.GetConfigs());

            maintainer.EditIndexConfig(indexConfig with {
                IndexName = "EFG"
            });
            CollectionAssert.AreEquivalent(new[] { indexConfig with {