public void SetUp()
        {
            _serverManager = new Mock<IServerManager>();
            var directory = new Mock<IDirectory>();

            _serverManager.SetupGet(x => x.Sites).Returns(new ServerManager().Sites);

            var cfg = new InstallationConfiguration(null, null);
            cfg.WithSiteName("SiteDeployerIntegrationTest");

            _siteDeployer = new SiteDeployer(_serverManager.Object, cfg, directory.Object);
        }
        public void SetUp()
        {
            DeleteExistingSite();

            InstallationConfiguration = new InstallationConfiguration(Environment.CurrentDirectory, null);
            InstallationConfiguration.WithSiteName(SiteName);
            InstallationConfiguration.WithAppPool(AppPoolName);

            Given(InstallationConfiguration);

            using (var manager = new ServerManagerWrapper())
            {
                When(manager);

                manager.CommitChanges();
            }
        }
        protected override void Given(InstallationConfiguration installationConfiguration)
        {
            CreateExistingSite();

            installationConfiguration.WithSiteName("SiteOtherNameWhichShouldNotBeCreated");
        }