示例#1
0
        public void CreateWithMultipleUrisUsesFirst()
        {
            var host = CreateHost("http://foo.com:1234", "http://localhost:4567");


            var content = new WebHostContent(host);


            Assert.Equal("http://foo.com:1234", content.ToUri());
        }
示例#2
0
        public void CreateContentFromLocalhostBuilder()
        {
            var host = CreateHost("http://localhost:4567");


            var content = new WebHostContent(host);


            Assert.Equal("http://localhost:4567", content.ToUri());
        }