public void GetList_NotEmpty() { var student = AddNewStudent(); var course = AddNewCourse(2); var teacher = AddNewTeacher(); Assert.NotEqual(0, student.Id); Assert.NotEqual(0, course.Id); Assert.NotEqual(0, teacher.Id); var isAssigned = _courseTeacherRepository.Assign(courseId: course.Id, teacherId: teacher.Id); Assert.True(isAssigned); var isSignedUp = _courseStudentRepo.Signup(courseId: course.Id, studentId: student.Id); Assert.True(isSignedUp); var coursesStudentsTeachersModel = _integrationRepo.GetDetails(); Assert.NotEmpty(coursesStudentsTeachersModel); }
public ActionResult <IEnumerable <GetCourseStudentTeacherModel> > Get() { var courseStudentsTeachers = _courseStudentTeacherRepo.GetDetails(); return(Ok(courseStudentsTeachers)); }