Beispiel #1
0
        public string GetLink(string shortLink)
        {
            var result = facade.GetLink(shortLink);

            if (result != null)
            {
                Assert.That(result.JumpsCount, Is.EqualTo(++currentJupmsCount));
            }
            return(result?.SourceLink);
        }
Beispiel #2
0
 public JsonResult Get(string link)
 {
     return(new JsonResult(facade.GetLink(link)));
 }