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