Beispiel #1
0
        public string Shorten(string url)
        {
            var id   = Add(url);
            var hash = urlConversion.Encode(id);

            return(hash);
        }
Beispiel #2
0
        public void with_0_generates_string_0()
        {
            var result = urlConversion.Encode(0);

            Assert.AreEqual("0", result);
        }