MockISchoolPlusService class

Mock implementation of ISchoolPlusService for repository unit tests and demo mode.

Implemented types

Constructors

MockISchoolPlusService()

Properties

courseListResult ↔ List<ISchoolCourseDto>?
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
materialResult ↔ MaterialDto?
getter/setter pair
materialsResult ↔ List<MaterialRefDto>?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
studentsResult ↔ List<StudentDto>?
getter/setter pair

Methods

checkAvailability() → Future<void>
Checks whether the public I-School Plus homepage is reachable without using an authenticated session.
override
downloadMaterial(MaterialRefDto material, String directory, {CancelToken? cancelToken, ProgressCallback? onReceiveProgress}) → Future<MaterialFileDto>
Resolves fresh access information and downloads a file into directory.
override
getCourseList() → Future<List<ISchoolCourseDto>>
Fetches the list of courses available on iSchool+ for the current user.
override
getMaterial(MaterialRefDto material) → Future<MaterialDto>
Fetches download information for a specific course material.
override
getMaterials(ISchoolCourseDto course) → Future<List<MaterialRefDto>>
Fetches the list of course materials for the specified course.
override
getStudents(ISchoolCourseDto course) → Future<List<StudentDto>>
Returns the mock student and the authors of this app.
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