コード例 #1
0
        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);
        }
コード例 #2
0
        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);
            }
        }