public async Task ReturnEmptyListWhenGivenEmptyString() { // Arrange var input = string.Empty; // Act var result = await keywordsService.CollectKeywords(input); // Assert Assert.Empty(result); }
private async Task <IEnumerable <Keyword> > ProcessProperty(string property, string value) { var translation = await translateService.Translate(value); var collectedKeywords = await keywordsService.CollectKeywords(translation); if (!collectedKeywords.Any()) { collectedKeywords = GetDefaultKeywords(translation); } return(keywordsService.ProcessKeywords(collectedKeywords, property, translation)); }