private AlgoliaSearchIndex LoadIndexConfiguration(string fileName)
        {
            //Arrange
            string xmlPath = @"Configuration\" + fileName;
            var    xmlDoc  = new XmlDocument();

            xmlDoc.Load(xmlPath);

            XmlElement root       = xmlDoc.DocumentElement;
            var        configNode = root.SelectSingleNode("//configuration//sitecore//contentSearch//configuration//indexes//index");

            configNode.Should().NotBeNull();
            var factory = new FakeFactory(xmlDoc);

            //Act
            return(factory.CreateObject <AlgoliaSearchIndex>(configNode));
        }