Esempio n. 1
0
        public async Task <ShortenResult> Shorten(string longUrl)
        {
            BitlyShortenResult result = await ShortenInternal(longUrl);

            return(new ShortenResult
            {
                ShortUrl = result?.ShortUrl,
                LongUrl = result?.LongUrl
            });
        }
Esempio n. 2
0
 protected override void Because_of()
 {
     result = Sut.ShortenUrl(input);
 }