public IProjectSearchResult AssemblyWithNameMatching(Pattern pattern) { if (_path.Any(Predicates.AssemblyNameMatches(pattern))) { var(foundProject, occurenceIndex) = FindWithIndexWhere(Predicates.AssemblyNameMatches(pattern)); return(_projectFoundSearchResultFactory.ItemFound(foundProject, occurenceIndex)); } else { return(_projectFoundSearchResultFactory.ItemNotFound()); } }