public void RemoveApplication_ThrowsWhenApplicationDoesNotExist()
        {
            var website = WebAdministrationFactory.CreateWebsite();
            var sut = new WebsiteConfigurer(website);

            Assert.Throws<InstallationException>(() => { sut.RemoveApplication("somemissingapplication"); });
        }
        public void RemoveApplication_RemovesApplicationFromSite()
        {
            var website = WebAdministrationFactory.CreateWebsite();
            website.Applications.Add("/SomeAlias", @"C:\");

            var sut = new WebsiteConfigurer(website);

            sut.RemoveApplication("SomeAlias");

            Assert.Equal(0, website.Applications.Count(application => application.Path.Equals("/SomeAlias")));
        }