public string Shorten(string url) { var id = Add(url); var hash = urlConversion.Encode(id); return(hash); }
public void with_0_generates_string_0() { var result = urlConversion.Encode(0); Assert.AreEqual("0", result); }