doctor_repository_contract

package
v0.0.0-...-0fbe093 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRepository

type MockRepository struct {
	mock.Mock
}

MockRepository is an autogenerated mock type for the Repository type

func NewMockRepository

func NewMockRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRepository

NewMockRepository creates a new instance of MockRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockRepository) GetByID

func (_m *MockRepository) GetByID(ctx context.Context, id uint) (*entities.Doctor, error)

GetByID provides a mock function with given fields: ctx, id

func (*MockRepository) GetByMedicalID

func (_m *MockRepository) GetByMedicalID(ctx context.Context, medicalID string, userIdToIgnore uint) (*entities.Doctor, error)

GetByMedicalID provides a mock function with given fields: ctx, medicalID, userIdToIgnore

type Repository

type Repository interface {
	GetByID(ctx context.Context, id uint) (*entities.Doctor, error)
	GetByMedicalID(ctx context.Context, medicalID string, userIdToIgnore uint) (*entities.Doctor, error)
	Update(ctx context.Context, doctor *entities.Doctor) error
}

Jump to

Keyboard shortcuts

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