private IEnumerable <string> GetGivenTypesContents() { IClassFileDao dao = Dao.Factory.ClassFileDao; IEnumerable <ClassFile> givenTypes = dao.GetGivenTypes(Solution.Task); IEnumerable <string> givenTypesContents = givenTypes.Select( typeFile => dao.FileContents(Solution, typeFile)); return(givenTypesContents); }
public LoadedClasses(Solution solution, IMessageService messages, IDialogFactory dialogFactory) : this(messages, dialogFactory) { Solution = solution; IClassFileDao dao = Dao.Factory.ClassFileDao; IEnumerable <ClassFile> solutionFiles = dao.SolutionFiles(solution); foreach (ClassFile solutionFile in solutionFiles) { string fileContents = dao.FileContents(solution, solutionFile); AddFile(solutionFile, fileContents); } }