public void GetList_NotEmpty()
        {
            var student = AddNewStudent();
            var course  = AddNewCourse(2);

            Assert.NotEqual(0, student.Id);
            Assert.NotEqual(0, course.Id);
            var courseStudentsSummary = _courseStudentRepo.GetList();

            Assert.NotEmpty(courseStudentsSummary);
        }
示例#2
0
        public ActionResult <IEnumerable <GetCourseStudentSummaryModel> > Get()
        {
            var courseStudents = _courseStudentRepo.GetList();

            return(Ok(courseStudents));
        }