Documentation ¶
Index ¶
- type UserUseCaseMock
- func (f *UserUseCaseMock) AddFacilitiesToClientProfile(ctx context.Context, clientID string, facilities []string) (bool, error)
- func (f *UserUseCaseMock) AddFacilitiesToStaffProfile(ctx context.Context, staffID string, facilities []string) (bool, error)
- func (f *UserUseCaseMock) AssignCaregiver(ctx context.Context, input dto.ClientCaregiverInput) (bool, error)
- func (f *UserUseCaseMock) CheckIdentifierExists(ctx context.Context, identifierType enums.UserIdentifierType, ...) (bool, error)
- func (f *UserUseCaseMock) CheckIfPhoneExists(ctx context.Context, phoneNumber string) (bool, error)
- func (f *UserUseCaseMock) CheckSuperUserExists(ctx context.Context) (bool, error)
- func (f *UserUseCaseMock) ClientSignUp(ctx context.Context, input *dto.ClientSelfSignUp) (*dto.ClientRegistrationOutput, error)
- func (f *UserUseCaseMock) CompleteOnboardingTour(ctx context.Context, userID string, flavour feedlib.Flavour) (bool, error)
- func (f *UserUseCaseMock) Consent(ctx context.Context, phoneNumber string, flavour feedlib.Flavour) (bool, error)
- func (f *UserUseCaseMock) ConsentToAClientCaregiver(ctx context.Context, clientID string, caregiverID string, ...) (bool, error)
- func (f *UserUseCaseMock) ConsentToManagingClient(ctx context.Context, caregiverID string, clientID string, ...) (bool, error)
- func (f *UserUseCaseMock) CreateOrUpdateClientCaregiver(ctx context.Context, caregiverInput *dto.CaregiverInput) (bool, error)
- func (f *UserUseCaseMock) CreateSuperUser(ctx context.Context, input dto.StaffRegistrationInput) (*dto.StaffRegistrationOutput, error)
- func (f *UserUseCaseMock) DeleteClientProfile(ctx context.Context, clientID string) (bool, error)
- func (f *UserUseCaseMock) FetchContactOrganisations(ctx context.Context, phoneNumber string) ([]*domain.Organisation, error)
- func (f *UserUseCaseMock) GenerateTemporaryPin(ctx context.Context, userID string, flavour feedlib.Flavour) (string, error)
- func (f *UserUseCaseMock) GetCaregiverManagedClients(ctx context.Context, userID string, input dto.PaginationsInput) (*dto.ManagedClientOutputPage, error)
- func (f *UserUseCaseMock) GetClientCaregiver(ctx context.Context, clientID string) (*domain.Caregiver, error)
- func (f *UserUseCaseMock) GetClientFacilities(ctx context.Context, clientID string, paginationInput dto.PaginationsInput) (*dto.FacilityOutputPage, error)
- func (f *UserUseCaseMock) GetClientProfileByCCCNumber(ctx context.Context, CCCNumber string) (*domain.ClientProfile, error)
- func (f *UserUseCaseMock) GetStaffFacilities(ctx context.Context, staffID string, paginationInput dto.PaginationsInput) (*dto.FacilityOutputPage, error)
- func (f *UserUseCaseMock) GetStaffProfile(ctx context.Context, userID, programID string) (*domain.StaffProfile, error)
- func (f *UserUseCaseMock) GetUserProfile(ctx context.Context, userID string) (*domain.User, error)
- func (f *UserUseCaseMock) InviteUser(ctx context.Context, userID string, phoneNumber string, ...) (bool, error)
- func (f *UserUseCaseMock) ListClientsCaregivers(ctx context.Context, clientID string, pagination *dto.PaginationsInput) (*dto.CaregiverProfileOutputPage, error)
- func (f *UserUseCaseMock) Login(ctx context.Context, input *dto.LoginInput) (*dto.LoginResponse, bool)
- func (f *UserUseCaseMock) RefreshToken(ctx context.Context, userID string) (*dto.AuthCredentials, error)
- func (f *UserUseCaseMock) RegisterCaregiver(ctx context.Context, input dto.CaregiverInput) (*domain.CaregiverProfile, error)
- func (f *UserUseCaseMock) RegisterClient(ctx context.Context, input *dto.ClientRegistrationInput) (*dto.ClientRegistrationOutput, error)
- func (f *UserUseCaseMock) RegisterClientAsCaregiver(ctx context.Context, clientID string, caregiverNumber string) (*domain.CaregiverProfile, error)
- func (f *UserUseCaseMock) RegisterExistingUserAsCaregiver(ctx context.Context, userID string, caregiverNumber string) (*domain.CaregiverProfile, error)
- func (f *UserUseCaseMock) RegisterExistingUserAsClient(ctx context.Context, input dto.ExistingUserClientInput) (*dto.ClientRegistrationOutput, error)
- func (f *UserUseCaseMock) RegisterExistingUserAsStaff(ctx context.Context, input dto.ExistingUserStaffInput) (*dto.StaffRegistrationOutput, error)
- func (f *UserUseCaseMock) RegisterOrganisationAdmin(ctx context.Context, input dto.StaffRegistrationInput) (*dto.StaffRegistrationOutput, error)
- func (f *UserUseCaseMock) RegisterPushToken(ctx context.Context, token string) (bool, error)
- func (f *UserUseCaseMock) RegisterStaff(ctx context.Context, input dto.StaffRegistrationInput) (*dto.StaffRegistrationOutput, error)
- func (f *UserUseCaseMock) RegisteredFacilityPatients(ctx context.Context, input dto.PatientSyncPayload) (*dto.PatientSyncResponse, error)
- func (f *UserUseCaseMock) RemoveFacilitiesFromClientProfile(ctx context.Context, clientID string, facilities []string) (bool, error)
- func (f *UserUseCaseMock) RemoveFacilitiesFromStaffProfile(ctx context.Context, staffID string, facilities []string) (bool, error)
- func (f *UserUseCaseMock) RequestPINReset(ctx context.Context, phoneNumber string, flavour feedlib.Flavour) (string, error)
- func (f *UserUseCaseMock) ResetPIN(ctx context.Context, input dto.UserResetPinInput) (bool, error)
- func (f *UserUseCaseMock) SavePin(ctx context.Context, input dto.PINInput) (bool, error)
- func (f *UserUseCaseMock) SearchCaregiverUser(ctx context.Context, searchParameter string) ([]*domain.CaregiverProfile, error)
- func (f *UserUseCaseMock) SearchClientUser(ctx context.Context, CCCNumber string) ([]*domain.ClientProfile, error)
- func (f *UserUseCaseMock) SearchStaffUser(ctx context.Context, searchParameter string) ([]*domain.StaffProfile, error)
- func (f *UserUseCaseMock) SetCaregiverCurrentClient(ctx context.Context, clientID string) (*domain.ClientProfile, error)
- func (f *UserUseCaseMock) SetCaregiverCurrentFacility(ctx context.Context, caregiverID string, facilityID string) (*domain.Facility, error)
- func (f *UserUseCaseMock) SetClientDefaultFacility(ctx context.Context, clientID string, facilityID string) (*domain.Facility, error)
- func (f *UserUseCaseMock) SetNickName(ctx context.Context, userID string, nickname string) (bool, error)
- func (f *UserUseCaseMock) SetStaffDefaultFacility(ctx context.Context, staffID string, facilityID string) (*domain.Facility, error)
- func (f *UserUseCaseMock) SetUserPIN(ctx context.Context, input dto.PINInput) (bool, error)
- func (f *UserUseCaseMock) TransferClientToFacility(ctx context.Context, clientID *string, facilityID *string) (bool, error)
- func (f *UserUseCaseMock) UpdateOrganisationAdminPermission(ctx context.Context, staffID string, isOrganisationAdmin bool) (bool, error)
- func (f *UserUseCaseMock) UpdateUserProfile(ctx context.Context, userID string, cccNumber *string, username *string, ...) (bool, error)
- func (f *UserUseCaseMock) VerifyPIN(ctx context.Context, userID string, flavour feedlib.Flavour, pin string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserUseCaseMock ¶
type UserUseCaseMock struct { MockLoginFn func(ctx context.Context, input *dto.LoginInput) (*dto.LoginResponse, bool) MockInviteUserFn func(ctx context.Context, userID string, phoneNumber string, flavour feedlib.Flavour, reinvite bool) (bool, error) MockSavePinFn func(ctx context.Context, input dto.PINInput) (bool, error) MockSetNickNameFn func(ctx context.Context, userID string, nickname string) (bool, error) MockRequestPINResetFn func(ctx context.Context, phoneNumber string, flavour feedlib.Flavour) (string, error) MockResetPINFn func(ctx context.Context, input dto.UserResetPinInput) (bool, error) MockRefreshTokenFn func(ctx context.Context, userID string) (*dto.AuthCredentials, error) MockVerifyPINFn func(ctx context.Context, userID string, flavour feedlib.Flavour, pin string) (bool, error) MockGetClientCaregiverFn func(ctx context.Context, clientID string) (*domain.Caregiver, error) MockCreateOrUpdateClientCaregiverFn func(ctx context.Context, caregiverInput *dto.CaregiverInput) (bool, error) MockRegisterClientFn func(ctx context.Context, input *dto.ClientRegistrationInput) (*dto.ClientRegistrationOutput, error) MockSearchClientUserFn func(ctx context.Context, searchParameter string) ([]*domain.ClientProfile, error) MockFetchContactOrganisationsFn func(ctx context.Context, phoneNumber string) ([]*domain.Organisation, error) MockCompleteOnboardingTourFn func(ctx context.Context, userID string, flavour feedlib.Flavour) (bool, error) MockRegisteredFacilityPatientsFn func(ctx context.Context, input dto.PatientSyncPayload) (*dto.PatientSyncResponse, error) MockSetUserPINFn func(ctx context.Context, input dto.PINInput) (bool, error) MockSearchStaffUserFn func(ctx context.Context, searchParameter string) ([]*domain.StaffProfile, error) MockConsentFn func(ctx context.Context, phoneNumber string, flavour feedlib.Flavour) (bool, error) MockGetUserProfileFn func(ctx context.Context, userID string) (*domain.User, error) MockGetStaffProfileFn func(ctx context.Context, userID, programID string) (*domain.StaffProfile, error) MockGenerateTemporaryPinFn func(ctx context.Context, userID string, flavour feedlib.Flavour) (string, error) MockRegisterPushTokenFn func(ctx context.Context, token string) (bool, error) MockGetClientProfileByCCCNumberFn func(ctx context.Context, cccNumber string) (*domain.ClientProfile, error) MockRegisterStaffFn func(ctx context.Context, input dto.StaffRegistrationInput) (*dto.StaffRegistrationOutput, error) MockDeleteClientProfileFn func(ctx context.Context, clientID string) (bool, error) MockTransferClientToFacilityFn func(ctx context.Context, clientID *string, facilityID *string) (bool, error) MockSetStaffDefaultFacilityFn func(ctx context.Context, staffID string, facilityID string) (*domain.Facility, error) MockSetClientDefaultFacilityFn func(ctx context.Context, clientID string, facilityID string) (*domain.Facility, error) MockRemoveFacilitiesFromClientProfileFn func(ctx context.Context, clientID string, facilities []string) (bool, error) MockAddFacilitiesToStaffProfileFn func(ctx context.Context, staffID string, facilities []string) (bool, error) MockAddFacilitiesToClientProfileFn func(ctx context.Context, clientID string, facilities []string) (bool, error) MockRegisterCaregiver func(ctx context.Context, input dto.CaregiverInput) (*domain.CaregiverProfile, error) MockSearchCaregiverUserFn func(ctx context.Context, searchParameter string) ([]*domain.CaregiverProfile, error) MockAssignCaregiverFn func(ctx context.Context, input dto.ClientCaregiverInput) (bool, error) MockRemoveFacilitiesFromStaffProfileFn func(ctx context.Context, staffID string, facilities []string) (bool, error) MockRegisterExistingUserAsClientFn func(ctx context.Context, input dto.ExistingUserClientInput) (*dto.ClientRegistrationOutput, error) MockRegisterClientAsCaregiverFn func(ctx context.Context, clientID string, caregiverNumber string) (*domain.CaregiverProfile, error) MockGetCaregiverManagedClientsFn func(ctx context.Context, userID string, input dto.PaginationsInput) (*dto.ManagedClientOutputPage, error) MockListClientsCaregiversFn func(ctx context.Context, clientID string, pagination *dto.PaginationsInput) (*dto.CaregiverProfileOutputPage, error) MockConsentToAClientCaregiverFn func(ctx context.Context, clientID string, caregiverID string, consent enums.ConsentState) (bool, error) MockConsentToManagingClientFn func(ctx context.Context, caregiverID string, clientID string, consent enums.ConsentState) (bool, error) MockRegisterExistingUserAsStaffFn func(ctx context.Context, input dto.ExistingUserStaffInput) (*dto.StaffRegistrationOutput, error) MockGetStaffFacilitiesFn func(ctx context.Context, staffID string, paginationInput dto.PaginationsInput) (*dto.FacilityOutputPage, error) MockGetClientFacilitiesFn func(ctx context.Context, clientID string, paginationInput dto.PaginationsInput) (*dto.FacilityOutputPage, error) MocSetCaregiverCurrentClientFn func(ctx context.Context, clientID string) (*domain.ClientProfile, error) MockSetCaregiverCurrentFacilityFn func(ctx context.Context, caregiverID string, facilityID string) (*domain.Facility, error) MockRegisterExistingUserAsCaregiverFn func(ctx context.Context, userID string, caregiverNumber string) (*domain.CaregiverProfile, error) MockUpdateUserProfileFn func(ctx context.Context, userID string, cccNumber *string, username *string, phoneNumber *string, programID string, flavour feedlib.Flavour, email *string) (bool, error) MockCreateSuperUserFn func(ctx context.Context, input dto.StaffRegistrationInput) (*dto.StaffRegistrationOutput, error) MockCheckSuperUserExistsFn func(ctx context.Context) (bool, error) MockCheckIdentifierExistsFn func(ctx context.Context, identifierType enums.UserIdentifierType, identifierValue string) (bool, error) MockRegisterOrganisationAdminFn func(ctx context.Context, input dto.StaffRegistrationInput) (*dto.StaffRegistrationOutput, error) MockCheckIfPhoneExistsFn func(ctx context.Context, phoneNumber string) (bool, error) MockUpdateOrganisationAdminPermissionFn func(ctx context.Context, staffID string, isOrganisationAdmin bool) (bool, error) MockClientSignUpFn func(ctx context.Context, input *dto.ClientSelfSignUp) (*dto.ClientRegistrationOutput, error) }
UserUseCaseMock mocks the implementation of usecase methods.
func NewUserUseCaseMock ¶
func NewUserUseCaseMock() *UserUseCaseMock
NewUserUseCaseMock creates in initializes create type mocks
func (*UserUseCaseMock) AddFacilitiesToClientProfile ¶
func (f *UserUseCaseMock) AddFacilitiesToClientProfile(ctx context.Context, clientID string, facilities []string) (bool, error)
AddFacilitiesToClientProfile mocks the implementation of adding facilities to a client profile
func (*UserUseCaseMock) AddFacilitiesToStaffProfile ¶
func (f *UserUseCaseMock) AddFacilitiesToStaffProfile(ctx context.Context, staffID string, facilities []string) (bool, error)
AddFacilitiesToStaffProfile mocks the implementation of adding facilities to a staff profile
func (*UserUseCaseMock) AssignCaregiver ¶
func (f *UserUseCaseMock) AssignCaregiver(ctx context.Context, input dto.ClientCaregiverInput) (bool, error)
AssignCaregiver mocks the implementation of adding a caregiver to a client
func (*UserUseCaseMock) CheckIdentifierExists ¶
func (f *UserUseCaseMock) CheckIdentifierExists(ctx context.Context, identifierType enums.UserIdentifierType, identifierValue string) (bool, error)
CheckIdentifierExists mocks the implementation of CheckIdentifierExists method
func (*UserUseCaseMock) CheckIfPhoneExists ¶
CheckIfPhoneExists mocks the implementation of CheckIfPhoneExists method
func (*UserUseCaseMock) CheckSuperUserExists ¶
func (f *UserUseCaseMock) CheckSuperUserExists(ctx context.Context) (bool, error)
CheckSuperUserExists mocks the implementation of checking the existence of a super user
func (*UserUseCaseMock) ClientSignUp ¶
func (f *UserUseCaseMock) ClientSignUp(ctx context.Context, input *dto.ClientSelfSignUp) (*dto.ClientRegistrationOutput, error)
ClientSignUp mocks the implementation of signing up a client
func (*UserUseCaseMock) CompleteOnboardingTour ¶
func (f *UserUseCaseMock) CompleteOnboardingTour(ctx context.Context, userID string, flavour feedlib.Flavour) (bool, error)
CompleteOnboardingTour mocks the implementation of completing an onboarding tour
func (*UserUseCaseMock) Consent ¶
func (f *UserUseCaseMock) Consent(ctx context.Context, phoneNumber string, flavour feedlib.Flavour) (bool, error)
Consent mocks the implementation of a user withdrawing or offering their consent to the app
func (*UserUseCaseMock) ConsentToAClientCaregiver ¶
func (f *UserUseCaseMock) ConsentToAClientCaregiver(ctx context.Context, clientID string, caregiverID string, consent enums.ConsentState) (bool, error)
ConsentToAClientCaregiver mocks the implementation of a client acknowledging to having a certain caregiver assigned to them.
func (*UserUseCaseMock) ConsentToManagingClient ¶
func (f *UserUseCaseMock) ConsentToManagingClient(ctx context.Context, caregiverID string, clientID string, consent enums.ConsentState) (bool, error)
ConsentToManagingClient mock the implementation of a caregiver acknowledging or offering their consent to act on behalf of the client.
func (*UserUseCaseMock) CreateOrUpdateClientCaregiver ¶
func (f *UserUseCaseMock) CreateOrUpdateClientCaregiver(ctx context.Context, caregiverInput *dto.CaregiverInput) (bool, error)
CreateOrUpdateClientCaregiver mocks the implementation for creating or updating the caregiver of a client
func (*UserUseCaseMock) CreateSuperUser ¶
func (f *UserUseCaseMock) CreateSuperUser(ctx context.Context, input dto.StaffRegistrationInput) (*dto.StaffRegistrationOutput, error)
CreateSuperUser mocks the implementation of registering a super user
func (*UserUseCaseMock) DeleteClientProfile ¶
DeleteClientProfile mocks the implementation of deleting a client user
func (*UserUseCaseMock) FetchContactOrganisations ¶
func (f *UserUseCaseMock) FetchContactOrganisations(ctx context.Context, phoneNumber string) ([]*domain.Organisation, error)
FetchContactOrganisations fetches organisations associated with a provided phone number Provides the organisation options used during login
func (*UserUseCaseMock) GenerateTemporaryPin ¶
func (f *UserUseCaseMock) GenerateTemporaryPin(ctx context.Context, userID string, flavour feedlib.Flavour) (string, error)
GenerateTemporaryPin mocks the implementation of generating temporary pin
func (*UserUseCaseMock) GetCaregiverManagedClients ¶
func (f *UserUseCaseMock) GetCaregiverManagedClients(ctx context.Context, userID string, input dto.PaginationsInput) (*dto.ManagedClientOutputPage, error)
GetCaregiverManagedClients mocks the implementation of getting caregiver's managed clients
func (*UserUseCaseMock) GetClientCaregiver ¶
func (f *UserUseCaseMock) GetClientCaregiver(ctx context.Context, clientID string) (*domain.Caregiver, error)
GetClientCaregiver mocks the implementation for getting the caregiver of a client
func (*UserUseCaseMock) GetClientFacilities ¶
func (f *UserUseCaseMock) GetClientFacilities(ctx context.Context, clientID string, paginationInput dto.PaginationsInput) (*dto.FacilityOutputPage, error)
GetClientFacilities mocks the implementation of getting a client's facilities
func (*UserUseCaseMock) GetClientProfileByCCCNumber ¶
func (f *UserUseCaseMock) GetClientProfileByCCCNumber(ctx context.Context, CCCNumber string) (*domain.ClientProfile, error)
GetClientProfileByCCCNumber mocks the implementation for getting a client profile by CCC number
func (*UserUseCaseMock) GetStaffFacilities ¶
func (f *UserUseCaseMock) GetStaffFacilities(ctx context.Context, staffID string, paginationInput dto.PaginationsInput) (*dto.FacilityOutputPage, error)
GetStaffFacilities mocks the implementation of getting a staff's facilities
func (*UserUseCaseMock) GetStaffProfile ¶
func (f *UserUseCaseMock) GetStaffProfile(ctx context.Context, userID, programID string) (*domain.StaffProfile, error)
GetStaffProfile mocks the implementation of the GetStaffProfile
func (*UserUseCaseMock) GetUserProfile ¶
GetUserProfile returns a user profile given the user ID
func (*UserUseCaseMock) InviteUser ¶
func (f *UserUseCaseMock) InviteUser(ctx context.Context, userID string, phoneNumber string, flavour feedlib.Flavour, reinvite bool) (bool, error)
InviteUser mocks the invite functionality
func (*UserUseCaseMock) ListClientsCaregivers ¶
func (f *UserUseCaseMock) ListClientsCaregivers(ctx context.Context, clientID string, pagination *dto.PaginationsInput) (*dto.CaregiverProfileOutputPage, error)
ListClientsCaregivers mocks the implementation of listing a client's caregivers
func (*UserUseCaseMock) Login ¶
func (f *UserUseCaseMock) Login(ctx context.Context, input *dto.LoginInput) (*dto.LoginResponse, bool)
Login mocks the login functionality
func (*UserUseCaseMock) RefreshToken ¶
func (f *UserUseCaseMock) RefreshToken(ctx context.Context, userID string) (*dto.AuthCredentials, error)
RefreshToken mocks the implementation for refreshing a token
func (*UserUseCaseMock) RegisterCaregiver ¶
func (f *UserUseCaseMock) RegisterCaregiver(ctx context.Context, input dto.CaregiverInput) (*domain.CaregiverProfile, error)
RegisterCaregiver is used to register a caregiver
func (*UserUseCaseMock) RegisterClient ¶
func (f *UserUseCaseMock) RegisterClient(ctx context.Context, input *dto.ClientRegistrationInput) (*dto.ClientRegistrationOutput, error)
RegisterClient mocks the implementation for registering a client
func (*UserUseCaseMock) RegisterClientAsCaregiver ¶
func (f *UserUseCaseMock) RegisterClientAsCaregiver(ctx context.Context, clientID string, caregiverNumber string) (*domain.CaregiverProfile, error)
RegisterClientAsCaregiver adds a caregiver profile to a client
func (*UserUseCaseMock) RegisterExistingUserAsCaregiver ¶
func (f *UserUseCaseMock) RegisterExistingUserAsCaregiver(ctx context.Context, userID string, caregiverNumber string) (*domain.CaregiverProfile, error)
RegisterExistingUserAsCaregiver mocks the implementation of registering an existing user as a caregiver
func (*UserUseCaseMock) RegisterExistingUserAsClient ¶
func (f *UserUseCaseMock) RegisterExistingUserAsClient(ctx context.Context, input dto.ExistingUserClientInput) (*dto.ClientRegistrationOutput, error)
RegisterExistingUserAsClient mocks the implementation of registering an existing user as a client
func (*UserUseCaseMock) RegisterExistingUserAsStaff ¶
func (f *UserUseCaseMock) RegisterExistingUserAsStaff(ctx context.Context, input dto.ExistingUserStaffInput) (*dto.StaffRegistrationOutput, error)
RegisterExistingUserAsStaff mocks the implementation of registering an existing user as a staff
func (*UserUseCaseMock) RegisterOrganisationAdmin ¶
func (f *UserUseCaseMock) RegisterOrganisationAdmin(ctx context.Context, input dto.StaffRegistrationInput) (*dto.StaffRegistrationOutput, error)
RegisterOrganisationAdmin mocks the implementation of RegisterOrganisationAdmin method
func (*UserUseCaseMock) RegisterPushToken ¶
RegisterPushToken mocks the implementation for adding a push token to a user's profile
func (*UserUseCaseMock) RegisterStaff ¶
func (f *UserUseCaseMock) RegisterStaff(ctx context.Context, input dto.StaffRegistrationInput) (*dto.StaffRegistrationOutput, error)
RegisterStaff mocks the implementation of registering a staff user
func (*UserUseCaseMock) RegisteredFacilityPatients ¶
func (f *UserUseCaseMock) RegisteredFacilityPatients(ctx context.Context, input dto.PatientSyncPayload) (*dto.PatientSyncResponse, error)
RegisteredFacilityPatients mocks the implementation of syncing the registered patients
func (*UserUseCaseMock) RemoveFacilitiesFromClientProfile ¶
func (f *UserUseCaseMock) RemoveFacilitiesFromClientProfile(ctx context.Context, clientID string, facilities []string) (bool, error)
RemoveFacilitiesFromClientProfile mocks the implementation of removing facilities from a client profile
func (*UserUseCaseMock) RemoveFacilitiesFromStaffProfile ¶
func (f *UserUseCaseMock) RemoveFacilitiesFromStaffProfile(ctx context.Context, staffID string, facilities []string) (bool, error)
RemoveFacilitiesFromStaffProfile mocks the implementation of removing facilities from a staff profile
func (*UserUseCaseMock) RequestPINReset ¶
func (f *UserUseCaseMock) RequestPINReset(ctx context.Context, phoneNumber string, flavour feedlib.Flavour) (string, error)
RequestPINReset mocks the implementation of requesting pin reset
func (*UserUseCaseMock) ResetPIN ¶
func (f *UserUseCaseMock) ResetPIN(ctx context.Context, input dto.UserResetPinInput) (bool, error)
ResetPIN mocks the reset pin functionality
func (*UserUseCaseMock) SearchCaregiverUser ¶
func (f *UserUseCaseMock) SearchCaregiverUser(ctx context.Context, searchParameter string) ([]*domain.CaregiverProfile, error)
SearchCaregiverUser mocks the implementation of searching caregiver profile using their caregiver number.
func (*UserUseCaseMock) SearchClientUser ¶
func (f *UserUseCaseMock) SearchClientUser(ctx context.Context, CCCNumber string) ([]*domain.ClientProfile, error)
SearchClientUser mocks the implementation getting the client by CCC number, username or phonenumber
func (*UserUseCaseMock) SearchStaffUser ¶
func (f *UserUseCaseMock) SearchStaffUser(ctx context.Context, searchParameter string) ([]*domain.StaffProfile, error)
SearchStaffUser mocks the implementation of getting staff profile using their staff number.
func (*UserUseCaseMock) SetCaregiverCurrentClient ¶
func (f *UserUseCaseMock) SetCaregiverCurrentClient(ctx context.Context, clientID string) (*domain.ClientProfile, error)
SetCaregiverCurrentClient mockes the implementation of setting the current client on a caregiver profile
func (*UserUseCaseMock) SetCaregiverCurrentFacility ¶
func (f *UserUseCaseMock) SetCaregiverCurrentFacility(ctx context.Context, caregiverID string, facilityID string) (*domain.Facility, error)
SetCaregiverCurrentFacility mocks the implementation of setting the current facility for a caregiver
func (*UserUseCaseMock) SetClientDefaultFacility ¶
func (f *UserUseCaseMock) SetClientDefaultFacility(ctx context.Context, clientID string, facilityID string) (*domain.Facility, error)
SetClientDefaultFacility mocks the implementation of setting a default facility for a client
func (*UserUseCaseMock) SetNickName ¶
func (f *UserUseCaseMock) SetNickName(ctx context.Context, userID string, nickname string) (bool, error)
SetNickName is used to mock the implementation to offset or change the user's nickname
func (*UserUseCaseMock) SetStaffDefaultFacility ¶
func (f *UserUseCaseMock) SetStaffDefaultFacility(ctx context.Context, staffID string, facilityID string) (*domain.Facility, error)
SetStaffDefaultFacility mocks the implementation of setting a default facility for a staff
func (*UserUseCaseMock) SetUserPIN ¶
SetUserPIN mocks the implementation of setting a user pin
func (*UserUseCaseMock) TransferClientToFacility ¶
func (f *UserUseCaseMock) TransferClientToFacility(ctx context.Context, clientID *string, facilityID *string) (bool, error)
TransferClientToFacility mocks the implementation of transferring a client to a facility
func (*UserUseCaseMock) UpdateOrganisationAdminPermission ¶
func (f *UserUseCaseMock) UpdateOrganisationAdminPermission(ctx context.Context, staffID string, isOrganisationAdmin bool) (bool, error)
UpdateOrganisationAdminPermission mocks the implementation of UpdateOrganisationAdminPermission method
func (*UserUseCaseMock) UpdateUserProfile ¶
func (f *UserUseCaseMock) UpdateUserProfile(ctx context.Context, userID string, cccNumber *string, username *string, phoneNumber *string, programID string, flavour feedlib.Flavour, email *string) (bool, error)
UpdateUserProfile mocks the implementation of updating a user's profile