public void SetUp() { _sut = Substitute.For <CreateSolrCores>(); _instance = Substitute.For <Instance>(); _instance.WebRootPath.Returns(@"c:\some\website\"); _module = Substitute.For <Product>(); XmlDocument doc = new XmlDocument(); doc.LoadXml(GetConfigXml("SOME_URL", "SOME_CORE_NAME", "SOME_ID")); _instance.GetShowconfig().Returns(doc); }