public void should_create_deploy_runner()
            {
                var configuration = new VisualStudioConfiguration
                {
                    Id = "visual-studio",
                    Github = new Github { Branch = "master", Url = "*****@*****.**" },
                    Iis = new Iis { Port = 9090, SiteName = "x", DeployDirectory = "c:\\sites" },
                    Solution = new Solution { Name = "solution.sln", SelectedConfiguration = 0, WebProject = "Web", IsRunTests = true }
                };

                var deployer = CreateFactory();

                var deployRunner = deployer.ForConfiguration(configuration);

                Assert.That(deployRunner, Is.Not.Null);
            }
Example #2
0
            public void should_if_web_project_is_missing()
            {
                var vs = new VisualStudioConfiguration { Github = new Github { Branch = "xx", Url = "xx" }, Iis = new Iis { SiteName = "x", DeployDirectory = "c:\\sites" }, Solution = new Solution { Name = "n"} };

                Assert.That(vs.IsConfigured(), Is.False);
            }
Example #3
0
            public void should_be_configured_if_all_data_in_place()
            {
                var vs = new VisualStudioConfiguration { Github = new Github { Branch = "xx", Url = "xx" }, Iis = new Iis { SiteName = "x", DeployDirectory = "c:\\sites" }, Solution = new Solution { Name = "s", WebProject = "w" }};

                Assert.That(vs.IsConfigured(), Is.True);
            }
Example #4
0
 internal IDeployRunner ForConfiguration(VisualStudioConfiguration config)
 {
     var bounceConfig = new VisualStudioBounceConfigurationBuilder(config).CreateConfig();
     return new DeployRunner(bounceConfig.ToBounceTargets());
 }
        public void should_delete_post_remove_configuration()
        {
            // arrange
            var configuration = new VisualStudioConfiguration { Id = "test" };
            ConfigurationsList.Configurations.Add(configuration);

            // act
            Controller.DeleteConfiguration("test");

            // assert
            Assert.That(ConfigurationsList.Configurations.SingleOrDefault(_ => _.Id == "test"), Is.Null);
        }