Example #1
0
            public void should_fail_if_iss_site_is_missing()
            {
                var xcopy = new XCopyConfiguration { Github = new Github { Branch = "1", Url = "xx" }, Iis = new Iis { DeployDirectory = "c:\\sites" } };

                Assert.That(xcopy.IsConfigured(), Is.False);
            }
Example #2
0
            public void should_fail_if_github_branch_is_missing()
            {
                var xcopy = new XCopyConfiguration { Github = new Github { Url = "xx" }, Iis = new Iis { SiteName = "x", DeployDirectory = "c:\\sites" } };

                Assert.That(xcopy.IsConfigured(), Is.False);
            }
Example #3
0
 public IDeployRunner ForConfiguration(XCopyConfiguration config)
 {
     var bounceConfig = new XCopyBounceConfigurationBuilder(config).CreateConfig();
     return new DeployRunner(bounceConfig.ToBounceTargets());
 }
Example #4
0
            public void should_be_configured_if_all_data_in_place()
            {
                var xcopy = new XCopyConfiguration {Github = new Github {Branch = "xx", Url = "xx"}, Iis = new Iis { SiteName = "x", DeployDirectory = "c:\\sites" }};

                Assert.That(xcopy.IsConfigured(), Is.True);
            }
            public void should_create_deploy_runner()
            {
                var configuration = new XCopyConfiguration
                {
                    Id = "id",
                    Github = new Github { Url = "*****@*****.**", Branch = "master" },
                    Iis = new Iis { SiteName = "test", DeployDirectory = @"c:\deploy" },
                };

                var deployer = CreateFactory();

                var deployRunner = deployer.ForConfiguration(configuration);

                Assert.That(deployRunner, Is.Not.Null);
            }