Inheritance: IConfigRepository
        public void ConfigRepositoryRemoveSiteTest()
        {
            FileHelper.FileSystem = new MockFileSystem(new Dictionary<string, MockFileData>()
            {
                {
                    @"c:\site1.publishsettings",
                    new MockFileData(string.Format(ProfileTemplate, "site1"))
                },
                {
                    @"c:\site2.foo.publishsettings",
                    new MockFileData(string.Format(ProfileTemplate, "site2"))
                },
                { @"c:\foo.txt", new MockFileData("bar")},
                { @"c:\site1\", new MockDirectoryData() }
            });

            IConfigRepository repository = new ConfigRepository();
            repository.RemoveSite("site1");
            repository.RemoveSite("site2");

            FileBase fileBase = FileHelper.FileSystem.File;
            DirectoryBase dirBase = FileHelper.FileSystem.Directory;

            Assert.IsFalse(fileBase.Exists(@"c:\site1.publishSettings"), "site1 publishSettings still exists");
            Assert.IsFalse(dirBase.Exists(@"c:\site1"), "site1 folder still exists");
            Assert.IsFalse(fileBase.Exists(@"c:\site2.foo.publishsettings"), "sit2 publishSettings still exists");
        }
        public void ConfigRepositoryGetSitesTest()
        {
            FileHelper.FileSystem = new MockFileSystem(new Dictionary<string, MockFileData>()
            {
                {
                    @"c:\site1.publishsettings",
                    new MockFileData(string.Format(ProfileTemplate, "site1"))
                },
                {
                    @"c:\site2.foo.publishsettings",
                    new MockFileData(string.Format(ProfileTemplate, "site2"))
                },
                { @"c:\foo.txt", new MockFileData("bar")}
            });

            HashSet<Site> expected = new HashSet<Site>
            {
                new Site(@"c:\site1.publishsettings"),
                new Site(@"c:\site2.foo.publishsettings")
            };

            IConfigRepository repository = new ConfigRepository();
            TestHelpers.VerifyEnumerable(expected, repository.Sites);
        }