internal SearchResultAdapter(PersistanceManager.Interfaces.ISearch search) { StartDate = search.StartTime; EndDate = search.EndTime; ProcessedSearcheesCount = (int)search.ProcessedFilesCount; Phrases = search.Phrases; var searchees = new List<SearcheeResult>(search.Count()); foreach (var matchingFile in search) { var searchee = new FileSearchee(matchingFile.FullPath); searchees.Add(new SearcheeResult(searchee, matchingFile.Matches)); } Searchees = searchees; }