408 lines
11 KiB
Dart
408 lines
11 KiB
Dart
// Mocks generated by Mockito 5.4.6 from annotations
|
|
// in unionflow_mobile_apps/test/features/members/domain/usecases/search_members_test.dart.
|
|
// Do not manually edit this file.
|
|
|
|
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
|
import 'dart:async' as _i5;
|
|
|
|
import 'package:mockito/mockito.dart' as _i1;
|
|
import 'package:unionflow_mobile_apps/features/members/data/models/membre_complete_model.dart'
|
|
as _i3;
|
|
import 'package:unionflow_mobile_apps/features/members/domain/repositories/membre_repository.dart'
|
|
as _i4;
|
|
import 'package:unionflow_mobile_apps/shared/models/membre_search_criteria.dart'
|
|
as _i6;
|
|
import 'package:unionflow_mobile_apps/shared/models/membre_search_result.dart'
|
|
as _i2;
|
|
|
|
// ignore_for_file: type=lint
|
|
// ignore_for_file: avoid_redundant_argument_values
|
|
// ignore_for_file: avoid_setters_without_getters
|
|
// ignore_for_file: comment_references
|
|
// ignore_for_file: deprecated_member_use
|
|
// ignore_for_file: deprecated_member_use_from_same_package
|
|
// ignore_for_file: implementation_imports
|
|
// ignore_for_file: invalid_use_of_visible_for_testing_member
|
|
// ignore_for_file: must_be_immutable
|
|
// ignore_for_file: prefer_const_constructors
|
|
// ignore_for_file: unnecessary_parenthesis
|
|
// ignore_for_file: camel_case_types
|
|
// ignore_for_file: subtype_of_sealed_class
|
|
// ignore_for_file: invalid_use_of_internal_member
|
|
|
|
class _FakeMembreSearchResult_0 extends _i1.SmartFake
|
|
implements _i2.MembreSearchResult {
|
|
_FakeMembreSearchResult_0(
|
|
Object parent,
|
|
Invocation parentInvocation,
|
|
) : super(
|
|
parent,
|
|
parentInvocation,
|
|
);
|
|
}
|
|
|
|
class _FakeMembreCompletModel_1 extends _i1.SmartFake
|
|
implements _i3.MembreCompletModel {
|
|
_FakeMembreCompletModel_1(
|
|
Object parent,
|
|
Invocation parentInvocation,
|
|
) : super(
|
|
parent,
|
|
parentInvocation,
|
|
);
|
|
}
|
|
|
|
/// A class which mocks [IMembreRepository].
|
|
///
|
|
/// See the documentation for Mockito's code generation for more information.
|
|
class MockIMembreRepository extends _i1.Mock implements _i4.IMembreRepository {
|
|
MockIMembreRepository() {
|
|
_i1.throwOnMissingStub(this);
|
|
}
|
|
|
|
@override
|
|
_i5.Future<_i2.MembreSearchResult> getMembres({
|
|
int? page = 0,
|
|
int? size = 20,
|
|
String? recherche,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#getMembres,
|
|
[],
|
|
{
|
|
#page: page,
|
|
#size: size,
|
|
#recherche: recherche,
|
|
},
|
|
),
|
|
returnValue:
|
|
_i5.Future<_i2.MembreSearchResult>.value(_FakeMembreSearchResult_0(
|
|
this,
|
|
Invocation.method(
|
|
#getMembres,
|
|
[],
|
|
{
|
|
#page: page,
|
|
#size: size,
|
|
#recherche: recherche,
|
|
},
|
|
),
|
|
)),
|
|
) as _i5.Future<_i2.MembreSearchResult>);
|
|
|
|
@override
|
|
_i5.Future<_i3.MembreCompletModel?> getMembreById(String? id) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#getMembreById,
|
|
[id],
|
|
),
|
|
returnValue: _i5.Future<_i3.MembreCompletModel?>.value(),
|
|
) as _i5.Future<_i3.MembreCompletModel?>);
|
|
|
|
@override
|
|
_i5.Future<_i3.MembreCompletModel> createMembre(
|
|
_i3.MembreCompletModel? membre) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#createMembre,
|
|
[membre],
|
|
),
|
|
returnValue:
|
|
_i5.Future<_i3.MembreCompletModel>.value(_FakeMembreCompletModel_1(
|
|
this,
|
|
Invocation.method(
|
|
#createMembre,
|
|
[membre],
|
|
),
|
|
)),
|
|
) as _i5.Future<_i3.MembreCompletModel>);
|
|
|
|
@override
|
|
_i5.Future<_i3.MembreCompletModel> updateMembre(
|
|
String? id,
|
|
_i3.MembreCompletModel? membre,
|
|
) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#updateMembre,
|
|
[
|
|
id,
|
|
membre,
|
|
],
|
|
),
|
|
returnValue:
|
|
_i5.Future<_i3.MembreCompletModel>.value(_FakeMembreCompletModel_1(
|
|
this,
|
|
Invocation.method(
|
|
#updateMembre,
|
|
[
|
|
id,
|
|
membre,
|
|
],
|
|
),
|
|
)),
|
|
) as _i5.Future<_i3.MembreCompletModel>);
|
|
|
|
@override
|
|
_i5.Future<void> deleteMembre(String? id) => (super.noSuchMethod(
|
|
Invocation.method(
|
|
#deleteMembre,
|
|
[id],
|
|
),
|
|
returnValue: _i5.Future<void>.value(),
|
|
returnValueForMissingStub: _i5.Future<void>.value(),
|
|
) as _i5.Future<void>);
|
|
|
|
@override
|
|
_i5.Future<_i3.MembreCompletModel> activateMembre(String? id) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#activateMembre,
|
|
[id],
|
|
),
|
|
returnValue:
|
|
_i5.Future<_i3.MembreCompletModel>.value(_FakeMembreCompletModel_1(
|
|
this,
|
|
Invocation.method(
|
|
#activateMembre,
|
|
[id],
|
|
),
|
|
)),
|
|
) as _i5.Future<_i3.MembreCompletModel>);
|
|
|
|
@override
|
|
_i5.Future<_i3.MembreCompletModel> deactivateMembre(String? id) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#deactivateMembre,
|
|
[id],
|
|
),
|
|
returnValue:
|
|
_i5.Future<_i3.MembreCompletModel>.value(_FakeMembreCompletModel_1(
|
|
this,
|
|
Invocation.method(
|
|
#deactivateMembre,
|
|
[id],
|
|
),
|
|
)),
|
|
) as _i5.Future<_i3.MembreCompletModel>);
|
|
|
|
@override
|
|
_i5.Future<_i2.MembreSearchResult> searchMembres({
|
|
required _i6.MembreSearchCriteria? criteria,
|
|
int? page = 0,
|
|
int? size = 20,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#searchMembres,
|
|
[],
|
|
{
|
|
#criteria: criteria,
|
|
#page: page,
|
|
#size: size,
|
|
},
|
|
),
|
|
returnValue:
|
|
_i5.Future<_i2.MembreSearchResult>.value(_FakeMembreSearchResult_0(
|
|
this,
|
|
Invocation.method(
|
|
#searchMembres,
|
|
[],
|
|
{
|
|
#criteria: criteria,
|
|
#page: page,
|
|
#size: size,
|
|
},
|
|
),
|
|
)),
|
|
) as _i5.Future<_i2.MembreSearchResult>);
|
|
|
|
@override
|
|
_i5.Future<_i2.MembreSearchResult> getActiveMembers({
|
|
int? page = 0,
|
|
int? size = 20,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#getActiveMembers,
|
|
[],
|
|
{
|
|
#page: page,
|
|
#size: size,
|
|
},
|
|
),
|
|
returnValue:
|
|
_i5.Future<_i2.MembreSearchResult>.value(_FakeMembreSearchResult_0(
|
|
this,
|
|
Invocation.method(
|
|
#getActiveMembers,
|
|
[],
|
|
{
|
|
#page: page,
|
|
#size: size,
|
|
},
|
|
),
|
|
)),
|
|
) as _i5.Future<_i2.MembreSearchResult>);
|
|
|
|
@override
|
|
_i5.Future<_i2.MembreSearchResult> getBureauMembers({
|
|
int? page = 0,
|
|
int? size = 20,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#getBureauMembers,
|
|
[],
|
|
{
|
|
#page: page,
|
|
#size: size,
|
|
},
|
|
),
|
|
returnValue:
|
|
_i5.Future<_i2.MembreSearchResult>.value(_FakeMembreSearchResult_0(
|
|
this,
|
|
Invocation.method(
|
|
#getBureauMembers,
|
|
[],
|
|
{
|
|
#page: page,
|
|
#size: size,
|
|
},
|
|
),
|
|
)),
|
|
) as _i5.Future<_i2.MembreSearchResult>);
|
|
|
|
@override
|
|
_i5.Future<Map<String, dynamic>> getMembresStats() => (super.noSuchMethod(
|
|
Invocation.method(
|
|
#getMembresStats,
|
|
[],
|
|
),
|
|
returnValue:
|
|
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
) as _i5.Future<Map<String, dynamic>>);
|
|
|
|
@override
|
|
_i5.Future<_i3.MembreCompletModel> resetMotDePasse(String? id) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#resetMotDePasse,
|
|
[id],
|
|
),
|
|
returnValue:
|
|
_i5.Future<_i3.MembreCompletModel>.value(_FakeMembreCompletModel_1(
|
|
this,
|
|
Invocation.method(
|
|
#resetMotDePasse,
|
|
[id],
|
|
),
|
|
)),
|
|
) as _i5.Future<_i3.MembreCompletModel>);
|
|
|
|
@override
|
|
_i5.Future<_i3.MembreCompletModel> affecterOrganisation(
|
|
String? membreId,
|
|
String? organisationId,
|
|
) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#affecterOrganisation,
|
|
[
|
|
membreId,
|
|
organisationId,
|
|
],
|
|
),
|
|
returnValue:
|
|
_i5.Future<_i3.MembreCompletModel>.value(_FakeMembreCompletModel_1(
|
|
this,
|
|
Invocation.method(
|
|
#affecterOrganisation,
|
|
[
|
|
membreId,
|
|
organisationId,
|
|
],
|
|
),
|
|
)),
|
|
) as _i5.Future<_i3.MembreCompletModel>);
|
|
|
|
@override
|
|
_i5.Future<Map<String, dynamic>> inviterMembre(
|
|
String? membreId,
|
|
String? organisationId, {
|
|
String? roleOrg,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#inviterMembre,
|
|
[
|
|
membreId,
|
|
organisationId,
|
|
],
|
|
{#roleOrg: roleOrg},
|
|
),
|
|
returnValue:
|
|
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
) as _i5.Future<Map<String, dynamic>>);
|
|
|
|
@override
|
|
_i5.Future<Map<String, dynamic>> activerAdhesion(
|
|
String? membreId,
|
|
String? organisationId, {
|
|
String? motif,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#activerAdhesion,
|
|
[
|
|
membreId,
|
|
organisationId,
|
|
],
|
|
{#motif: motif},
|
|
),
|
|
returnValue:
|
|
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
) as _i5.Future<Map<String, dynamic>>);
|
|
|
|
@override
|
|
_i5.Future<Map<String, dynamic>> suspendrAdhesion(
|
|
String? membreId,
|
|
String? organisationId, {
|
|
String? motif,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#suspendrAdhesion,
|
|
[
|
|
membreId,
|
|
organisationId,
|
|
],
|
|
{#motif: motif},
|
|
),
|
|
returnValue:
|
|
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
) as _i5.Future<Map<String, dynamic>>);
|
|
|
|
@override
|
|
_i5.Future<Map<String, dynamic>> radierAdhesion(
|
|
String? membreId,
|
|
String? organisationId, {
|
|
String? motif,
|
|
}) =>
|
|
(super.noSuchMethod(
|
|
Invocation.method(
|
|
#radierAdhesion,
|
|
[
|
|
membreId,
|
|
organisationId,
|
|
],
|
|
{#motif: motif},
|
|
),
|
|
returnValue:
|
|
_i5.Future<Map<String, dynamic>>.value(<String, dynamic>{}),
|
|
) as _i5.Future<Map<String, dynamic>>);
|
|
}
|