mock

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecurityQuestionsUseCaseMock

type SecurityQuestionsUseCaseMock struct {
	MockGetSecurityQuestionsFn              func(ctx context.Context, flavour feedlib.Flavour) ([]*domain.SecurityQuestion, error)
	MockGetSecurityQuestionByIDFn           func(ctx context.Context, id string, flavour feedlib.Flavour) (*domain.SecurityQuestion, error)
	MockSaveSecurityQuestionResponseFn      func(ctx context.Context, securityQuestionResponse []*dto.SecurityQuestionResponseInput) error
	MockVerifySecurityQuestionResponsesFn   func(ctx context.Context, responses *dto.VerifySecurityQuestionsPayload) (bool, error)
	MockGetUserRespondedSecurityQuestionsFn func(ctx context.Context, input dto.GetUserRespondedSecurityQuestionsInput) ([]*domain.SecurityQuestion, error)
	MockRecordSecurityQuestionResponsesFn   func(ctx context.Context, input []*dto.SecurityQuestionResponseInput) ([]*domain.RecordSecurityQuestionResponse, error)
	MockCreateSecurityQuestionsFn           func(ctx context.Context, securityQuestions []*domain.SecurityQuestion) ([]*domain.SecurityQuestion, error)
}

SecurityQuestionsUseCaseMock mocks the implementation of security question usecase methods.

func NewSecurityQuestionsUseCaseMock

func NewSecurityQuestionsUseCaseMock() *SecurityQuestionsUseCaseMock

NewSecurityQuestionsUseCaseMock creates and itializes security question mocks

func (*SecurityQuestionsUseCaseMock) CreateSecurityQuestions

func (sq *SecurityQuestionsUseCaseMock) CreateSecurityQuestions(ctx context.Context, securityQuestions []*domain.SecurityQuestion) ([]*domain.SecurityQuestion, error)

CreateSecurityQuestions mocks the implementation of CreateSecurityQuestions method

func (*SecurityQuestionsUseCaseMock) GetSecurityQuestionByID

func (sq *SecurityQuestionsUseCaseMock) GetSecurityQuestionByID(ctx context.Context, id string, flavour feedlib.Flavour) (*domain.SecurityQuestion, error)

GetSecurityQuestionByID mocks the implementation of getting a security question by ID.

func (*SecurityQuestionsUseCaseMock) GetSecurityQuestions

func (sq *SecurityQuestionsUseCaseMock) GetSecurityQuestions(ctx context.Context, flavour feedlib.Flavour) ([]*domain.SecurityQuestion, error)

GetSecurityQuestions mocks the implementation of getting all the security questions.

func (*SecurityQuestionsUseCaseMock) GetUserRespondedSecurityQuestions

GetUserRespondedSecurityQuestions mocks the implementation of getting all the security questions.

func (*SecurityQuestionsUseCaseMock) RecordSecurityQuestionResponses

RecordSecurityQuestionResponses mock the implementation of the RecordSecurityQuestionResponses method

func (*SecurityQuestionsUseCaseMock) SaveSecurityQuestionResponse

func (sq *SecurityQuestionsUseCaseMock) SaveSecurityQuestionResponse(ctx context.Context, securityQuestionResponse []*dto.SecurityQuestionResponseInput) error

SaveSecurityQuestionResponse saves the security question response.

func (*SecurityQuestionsUseCaseMock) VerifySecurityQuestionResponses

func (sq *SecurityQuestionsUseCaseMock) VerifySecurityQuestionResponses(ctx context.Context, responses *dto.VerifySecurityQuestionsPayload) (bool, error)

VerifySecurityQuestionResponses mocks the verify security question responses

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL