MockCourseService class
Mock implementation of CourseService for repository unit tests and demo mode.
- Implemented types
Constructors
Properties
- courseResult ↔ CourseDto?
-
getter/setter pair
-
courseTableResult
↔ List<
ScheduleDto> ? -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
semesterListResult
↔ List<
SemesterDto> ? -
getter/setter pair
- syllabusResult ↔ SyllabusDto?
-
getter/setter pair
- teacherResult ↔ TeacherDto?
-
getter/setter pair
Methods
-
getClassroom(
{required String classroomId, required SemesterDto semester}) → Future -
Fetches detailed information about a specific classroom.
override
-
getCourse(
String courseId) → Future< CourseDto> -
Fetches detailed information about a specific course from the catalog.
override
-
getCourseSemesterList(
) → Future< List< SemesterDto> > -
Fetches the list of available semesters for the authenticated student.
override
-
getCourseTable(
{required String username, required SemesterDto semester}) → Future< List< ScheduleDto> > -
Fetches the course schedule table for a specific student and semester.
override
-
getSyllabus(
{required String courseNumber, required String syllabusId}) → Future< SyllabusDto> -
Fetches the detailed syllabus for a course offering.
override
-
getTeacher(
{required String teacherId, required SemesterDto semester}) → Future< TeacherDto> -
Fetches detailed information about a specific teacher.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited