public async Task GetTopAsyncShouldThrowArgumentExceptionForAmountTest()
        {
            await _hashTagService.GetTopAsync(0);

            Assert.Fail();
        }
Beispiel #2
0
 public async Task <IActionResult> GetTop(int amount = 10)
 {
     return(Ok((await _hashTagService.GetTopAsync(amount)).Select(h => h.Title)));
 }