private bool IsSatisfiedByDate(FeedItem item) { return((DateFrom == null || item.PublishedDate >= DateFrom) && (DateTo == null || item.PublishedDate <= DateTo)); }
private bool IsSatisfiedByContentKeyWords(FeedItem item) { return(!ContentKeyWords.Any() || ContentKeyWords.All(keyWord => item.Title.Contains(keyWord) || item.Description.Contains(keyWord))); }
private bool IsSatisfiedByCategories(FeedItem item) { return(!Categories.Any() || Categories.All(requiredCategory => item.Categories.Contains(requiredCategory))); }
public bool IsSatisfiedBy(FeedItem item) { return(IsSatisfiedByContentKeyWords(item) && IsSatisfiedByCategories(item) && IsSatisfiedByDate(item)); }