public void OnPhysicalPath_ThrowsIfPathDoesNotExist()
        {
            var application = WebAdministrationFactory.CreateApplication();
            var sut = new ApplicationConfigurer(application);

            Assert.Throws<DirectoryNotFoundException>(() => sut.OnPhysicalPath("C:\\mySite282829"));
        }
        public void OnPhysicalPath_ThrowsIfPathDoesNotExist()
        {
            var application = WebAdministrationFactory.CreateApplication();
            var sut         = new ApplicationConfigurer(application);

            Assert.Throws <DirectoryNotFoundException>(() => sut.OnPhysicalPath("C:\\mySite282829"));
        }
        public void OnPhysicalPath_SetsTheApplicationsVirtualDirectoryPhysicalPath()
        {
            var application = WebAdministrationFactory.CreateApplication();
            var sut = new ApplicationConfigurer(application);

            sut.OnPhysicalPath(@"C:\");

            Assert.Equal(@"C:\", application.VirtualDirectory().PhysicalPath);
        }
        public void OnPhysicalPath_SetsTheApplicationsVirtualDirectoryPhysicalPath()
        {
            var application = WebAdministrationFactory.CreateApplication();
            var sut         = new ApplicationConfigurer(application);

            sut.OnPhysicalPath(@"C:\");

            Assert.Equal(@"C:\", application.VirtualDirectory().PhysicalPath);
        }