mock.dart 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. import 'package:fis_jsonrpc/rpc.dart';
  2. import 'package:vitalapp/mock/services/diagnosis.dart';
  3. import 'package:vitalapp/mock/services/exam.dart';
  4. import 'package:vitalapp/mock/services/followup.dart';
  5. import 'package:vitalapp/mock/services/label.dart';
  6. import 'package:vitalapp/mock/services/patient.dart';
  7. import 'package:vitalapp/mock/services/patient_ext.dart';
  8. class JsonRpcMockProxy extends JsonRpcProxy {
  9. JsonRpcMockProxy({String? host}) : super(host: host);
  10. @override
  11. VitalLabelService get vitalLabel => LabelServiceMock(currentHostAddress);
  12. @override
  13. VitalPatientService get vitalPatient =>
  14. PatientServiceMock(currentHostAddress);
  15. @override
  16. VitalPatientExtensionService get vitalPatientExtension =>
  17. PatientExtensionServiceMock(currentHostAddress);
  18. @override
  19. VitalDiagnosisService get vitalDiagnosis =>
  20. DiagnosisServiceMock(currentHostAddress);
  21. @override
  22. VitalFollowUpService get vitalFollowUp =>
  23. FollowUpServiceMock(currentHostAddress);
  24. @override
  25. VitalExamService get vitalExam => ExamServiceMock(currentHostAddress);
  26. }