2024-05-01 04:36:40 +02:00
|
|
|
import 'package:immich_mobile/models/activities/activity.model.dart';
|
2024-05-02 22:59:14 +02:00
|
|
|
import 'package:immich_mobile/providers/activity.provider.dart';
|
|
|
|
import 'package:immich_mobile/providers/activity_statistics.provider.dart';
|
|
|
|
import 'package:immich_mobile/services/activity.service.dart';
|
2024-01-05 06:20:55 +01:00
|
|
|
import 'package:mocktail/mocktail.dart';
|
|
|
|
|
|
|
|
class ActivityServiceMock extends Mock implements ActivityService {}
|
|
|
|
|
|
|
|
class MockAlbumActivity extends AlbumActivityInternal
|
|
|
|
with Mock
|
|
|
|
implements AlbumActivity {
|
|
|
|
List<Activity>? initActivities;
|
|
|
|
MockAlbumActivity([this.initActivities]);
|
|
|
|
|
|
|
|
@override
|
|
|
|
Future<List<Activity>> build(String albumId, [String? assetId]) async {
|
|
|
|
return initActivities ?? [];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class ActivityStatisticsMock extends ActivityStatisticsInternal
|
|
|
|
with Mock
|
|
|
|
implements ActivityStatistics {}
|