public void OnPhysicalPath_ThrowsIfPathDoesNotExist()
        {
            var website = WebAdministrationFactory.CreateWebsite();
            var sut     = new WebsiteConfigurer(_logger, website);

            Assert.Throws <DirectoryNotFoundException>(() => sut.OnPhysicalPath("C:\\mySite282829"));
        }
        public void OnPhysicalPath_SetsThePathCorrectly()
        {
            var website = WebAdministrationFactory.CreateWebsite();
            var sut     = new WebsiteConfigurer(_logger, website);

            var expected = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);

            sut.OnPhysicalPath(expected);

            var actual = website.Applications.First().VirtualDirectories.First().PhysicalPath;

            Assert.Equal(expected, actual);
        }
        public void OnPhysicalPath_ThrowsIfPathDoesNotExist()
        {
            var website = WebAdministrationFactory.CreateWebsite();
            var sut = new WebsiteConfigurer(_logger, website);

            Assert.Throws<DirectoryNotFoundException>(() => sut.OnPhysicalPath("C:\\mySite282829"));
        }
        public void OnPhysicalPath_SetsThePathCorrectly()
        {
            var website = WebAdministrationFactory.CreateWebsite();
            var sut = new WebsiteConfigurer(_logger, website);

            var expected = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);

            sut.OnPhysicalPath(expected);

            var actual = website.Applications.First().VirtualDirectories.First().PhysicalPath;

            Assert.Equal(expected, actual);
        }