public void GetSiteUrl_SiteWithPort()
        {
            // arrange
            var iis = new Iis { SiteName = "xxx.com", Port = 8080 };

            // act
            var result = iis.GetSiteUrl();

            // assert
            result.Should().Be("http://xxx.com:8080");
        }
        public void GetSiteUrl_SiteWithBindings()
        {
            // arrange
            var iis = new Iis { Bindings = "http:*:90:sss.org" };

            // act
            var result = iis.GetSiteUrl();

            // assert
            result.Should().Be("http://sss.org:90");
        }
 public ActionResult ConfigureIisSection(string id, Iis config)
 {
     return Post<VisualStudioConfiguration>(id, c => c.Iis = config);
 }
Exemple #4
0
 public ActionResult ConfigureIisSection(string id, Iis config)
 {
     return Post<BatchConfiguration>(id, c => c.Iis = config);
 }
 public VisualStudioConfiguration()
 {
     Github = new Github();
     Solution = new Solution();
     Iis = new Iis();
 }
 public XCopyConfiguration()
 {
     Github = new Github();
     Iis = new Iis();
 }