forked from eatvio/eatvio_app
feat(auth): implement OAuth verification request and confirmation flow with error handling and UI updates
This commit is contained in:
18
test/fixtures/doubles/create_diet_doubles.dart
vendored
18
test/fixtures/doubles/create_diet_doubles.dart
vendored
@@ -7,9 +7,6 @@ import 'package:eatvio_app/features/feed/models/diets_pagination_model.dart';
|
||||
import 'package:eatvio_app/features/glossary/models/glossary_model.dart';
|
||||
import 'package:eatvio_app/features/glossary/repositories/glossary_repository.dart';
|
||||
import 'package:eatvio_app/features/glossary/services/glossary_service.dart';
|
||||
import 'package:eatvio_app/features/profile/models/profile_model.dart';
|
||||
import 'package:eatvio_app/features/profile/repositories/profile_repository.dart';
|
||||
import 'package:eatvio_app/features/profile/services/profile_service.dart';
|
||||
import 'package:retrofit/dio.dart' show HttpResponse;
|
||||
|
||||
import '../../fixtures/fixture_reader.dart';
|
||||
@@ -133,16 +130,6 @@ class FixtureCreateDietRepository extends CreateDietRepository {
|
||||
}
|
||||
}
|
||||
|
||||
class FixtureProfileRepository extends ProfileRepository {
|
||||
FixtureProfileRepository() : super(profileService: _NoopProfileService());
|
||||
|
||||
@override
|
||||
Future<ProfileModel> getMyProfile() async {
|
||||
final profileFixture = FixtureReader.readAsMap('profile/my_profile_response.json');
|
||||
return ProfileModel.fromJson(profileFixture);
|
||||
}
|
||||
}
|
||||
|
||||
class FixtureGlossaryRepository extends GlossaryRepository {
|
||||
FixtureGlossaryRepository() : super(glossaryService: _NoopGlossaryService());
|
||||
|
||||
@@ -190,11 +177,6 @@ class _NoopCreateDietService implements CreateDietService {
|
||||
}
|
||||
}
|
||||
|
||||
class _NoopProfileService implements ProfileService {
|
||||
@override
|
||||
noSuchMethod(Invocation invocation) => throw UnimplementedError('ProfileService call ${invocation.memberName}');
|
||||
}
|
||||
|
||||
class _NoopGlossaryService implements GlossaryService {
|
||||
@override
|
||||
noSuchMethod(Invocation invocation) => throw UnimplementedError('GlossaryService call ${invocation.memberName}');
|
||||
|
||||
Reference in New Issue
Block a user