示例#1
0
        public void ShouldCreateUrlWithoutEndingSlash()
        {
            //given
            var uri = new Uri("http://noslash/uri");

            //when
            var endpoint = new UPSHttpClient(uri, "dummy", "123").CreateEndpoint("test");

            //then
            Assert.AreEqual("http://noslash/uri/test", endpoint);
        }
        public void ShouldCreateUrlWithoutEndingSlash()
        {
            //given
            var uri = new Uri("http://noslash/uri");

            //when
            var endpoint = new UPSHttpClient(uri, "dummy", "123").CreateEndpoint("test");

            //then
            Assert.AreEqual("http://noslash/uri/test", endpoint);
        }