private static IList <HashFile> GetHashFiles(IEnumerable <string> filesPaths)
 {
     return(filesPaths.Select(file => new HashFile()
     {
         FileName = file,
         HashValue = FileDuplicateHelper.GetHash(file)
     }).ToList());
 }
 public void Search()
 {
     _filesToSearch = GetHashFiles(Directory.GetFiles(_searchFolderPath));
     _duplicates    = new List <string>();
     _threadPool.CreateAndStartSearchThreads(_threadsCount);
     _threadPool.WaitForThreadsToFinish();
     FileDuplicateHelper.WriteToOutputFile(_duplicates);
 }