public IObservable <IEnumerable <AutocompleteSuggestion> > Execute() => wordsToQuery .Aggregate(dataSource.GetAll(), (obs, word) => obs.Select(filterByWord(word))) .Select(TagSuggestion.FromTags);
public GetTagsAutocompleteSuggestionsInteractorTests() { dataSource.GetAll().Returns(Observable.Return(Tags)); }