Пример #1
0
        public void Test_GetCourses()
        {
            var data   = new EfData();
            var actual = data.GetCourses();

            Assert.NotNull(actual);
        }
Пример #2
0
        public List <CourseDAO> GetCourses()
        {
            var g = new List <CourseDAO>();

            foreach (var course in ef.GetCourses())
            {
                g.Add(CourseAutoMapper.MapToCourseDAO(course));
            }

            return(g);
        }