Added download

This commit is contained in:
verboomp
2026-02-03 09:51:03 +01:00
parent f9ca668b39
commit 5f1d2d8610
25 changed files with 874 additions and 145 deletions

View File

@@ -175,13 +175,13 @@ class MockLoginController extends _i1.Mock implements _i6.LoginController {
) as _i7.Future<bool>);
@override
_i7.Future<bool> isUsingJwtAuth() => (super.noSuchMethod(
bool isUsingJwtAuth() => (super.noSuchMethod(
Invocation.method(
#isUsingJwtAuth,
[],
),
returnValue: _i7.Future<bool>.value(false),
) as _i7.Future<bool>);
returnValue: false,
) as bool);
}
/// A class which mocks [CustomerController].
@@ -219,6 +219,23 @@ class MockCustomerController extends _i1.Mock
),
returnValue: _i7.Future<_i10.CustomerDto?>.value(),
) as _i7.Future<_i10.CustomerDto?>);
@override
_i7.Future<List<int>> export({
required int? customerId,
int? pictureId,
}) =>
(super.noSuchMethod(
Invocation.method(
#export,
[],
{
#customerId: customerId,
#pictureId: pictureId,
},
),
returnValue: _i7.Future<List<int>>.value(<int>[]),
) as _i7.Future<List<int>>);
}
/// A class which mocks [PictureController].
@@ -258,11 +275,11 @@ class MockJwtTokenStorage extends _i1.Mock implements _i13.JwtTokenStorage {
}
@override
_i7.Future<void> saveTokens(
void saveTokens(
String? accessToken,
String? refreshToken,
) =>
(super.noSuchMethod(
super.noSuchMethod(
Invocation.method(
#saveTokens,
[
@@ -270,57 +287,35 @@ class MockJwtTokenStorage extends _i1.Mock implements _i13.JwtTokenStorage {
refreshToken,
],
),
returnValue: _i7.Future<void>.value(),
returnValueForMissingStub: _i7.Future<void>.value(),
) as _i7.Future<void>);
returnValueForMissingStub: null,
);
@override
_i7.Future<String?> getAccessToken() => (super.noSuchMethod(
Invocation.method(
#getAccessToken,
[],
),
returnValue: _i7.Future<String?>.value(),
) as _i7.Future<String?>);
@override
_i7.Future<String?> getRefreshToken() => (super.noSuchMethod(
Invocation.method(
#getRefreshToken,
[],
),
returnValue: _i7.Future<String?>.value(),
) as _i7.Future<String?>);
@override
_i7.Future<void> clearTokens() => (super.noSuchMethod(
void clearTokens() => super.noSuchMethod(
Invocation.method(
#clearTokens,
[],
),
returnValue: _i7.Future<void>.value(),
returnValueForMissingStub: _i7.Future<void>.value(),
) as _i7.Future<void>);
returnValueForMissingStub: null,
);
@override
_i7.Future<bool> hasTokens() => (super.noSuchMethod(
bool hasTokens() => (super.noSuchMethod(
Invocation.method(
#hasTokens,
[],
),
returnValue: _i7.Future<bool>.value(false),
) as _i7.Future<bool>);
returnValue: false,
) as bool);
@override
_i7.Future<void> updateAccessToken(String? accessToken) =>
(super.noSuchMethod(
void updateAccessToken(String? accessToken) => super.noSuchMethod(
Invocation.method(
#updateAccessToken,
[accessToken],
),
returnValue: _i7.Future<void>.value(),
returnValueForMissingStub: _i7.Future<void>.value(),
) as _i7.Future<void>);
returnValueForMissingStub: null,
);
}
/// A class which mocks [Client].