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);
        }
Esempio n. 2
0
        private void SetConnectedFilesLists()
        {
            IClassFileDao dao = Dao.Factory.ClassFileDao;

            GivenTypes = dao.GetGivenTypes(Task)
                         .Select(classFile => new GivenTypeFile(Task, classFile))
                         .ToList();
            Tests = dao.GetTests(Task)
                    .Select(classFile => new TestFile(Task, classFile))
                    .ToList();
        }