mock.dart 582 B

123456789101112131415161718
  1. import 'package:fis_jsonrpc/rpc.dart';
  2. import 'package:vitalapp/mock/services/diagnosis.dart';
  3. import 'package:vitalapp/mock/services/label.dart';
  4. import 'package:vitalapp/mock/services/patient.dart';
  5. class JsonRpcMockProxy extends JsonRpcProxy {
  6. JsonRpcMockProxy({String? host}) : super(host: host);
  7. @override
  8. VitalLabelService get label => LabelServiceMock(currentHostAddress);
  9. @override
  10. VitalPatientService get patient => PatientServiceMock(currentHostAddress);
  11. @override
  12. VitalDiagnosisService get diagnosis =>
  13. DiagnosisServiceMock(currentHostAddress);
  14. }