vostpt / mobile-app

VOSTPT App for Android and iOS (supported by Flutter Portugal)
MIT License
25 stars 25 forks source link

Tests counties endpoint #80

Open TarekkMA opened 4 years ago

TarekkMA commented 4 years ago

Added a base class for mock Dio adapter so testing XEndpoints classes should be easier.

final mockDio = BaseDioAdapter.failure(
          path: pathCounties,
          response: okResponseValid
      ).getMockedDioClient();
final countyEndpoints = CountyEndpoints(mockDio);

Closes #37