private ProjectFindResult FindByDirectory(string path) { var results = _filesystem.GetCsProjFiles(path); var success = results.Count() == 1; return(new ProjectFindResult { ProjectPath = success ? results.Single() : null, IsFound = success, Candidates = results, }); }