public async Task GetUrbanQuoteAsync([Remainder] string searchTerm) { var quotes = await _urbanService.GetUrbanQuotesAsync(searchTerm); string definitions = _urbanService.ParseQuotes(quotes); if (definitions.Length > 0) { await ReplyAsync(definitions); } else { await ReplyAsync("No definitions found."); } }
public void Parser_ShouldThrowException_WhenInputIsEmpty() { Assert.That(() => _urbanService.ParseQuotes(new UrbanResponse()), Throws.ArgumentNullException); }