Documentation ¶
Overview ¶
Package mock_member is a generated GoMock package.
Package mock_member is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) FindAll(ctx context.Context, specification wrapper.QuerySpecification) ([]*domain.Member, error)
- func (m *MockRepository) FindByID(ctx context.Context, id string) (*domain.Member, error)
- func (m *MockRepository) Insert(ctx context.Context, member *domain.Member) error
- func (m *MockRepository) RetireMembership(ctx context.Context, member *domain.Member) error
- func (m *MockRepository) UpdateAddress(ctx context.Context, member *domain.Member) error
- func (m *MockRepository) UpdateContact(ctx context.Context, member *domain.Member) error
- func (m *MockRepository) UpdatePerson(ctx context.Context, member *domain.Member) error
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) FindAll(ctx, specification any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) FindByID(ctx, id any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Insert(ctx, member any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) RetireMembership(ctx, member any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) UpdateAddress(ctx, member any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) UpdateContact(ctx, member any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) UpdatePerson(ctx, member any) *gomock.Call
- type MockService
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) GetMember(ctx context.Context, id string) (*domain.Member, error)
- func (m *MockService) RetireMembership(ctx context.Context, id, reason string, date time.Time) error
- func (m *MockService) SaveMember(ctx context.Context, member *domain.Member) (string, error)
- func (m *MockService) SearchMembers(ctx context.Context, querySpecification wrapper.QuerySpecification, ...) ([]*domain.Member, error)
- func (m *MockService) UpdateAddress(ctx context.Context, memberID string, address domain.Address) error
- func (m *MockService) UpdateContact(ctx context.Context, memberID string, contact domain.Contact) error
- func (m *MockService) UpdatePerson(ctx context.Context, memberID string, person domain.Person) error
- type MockServiceMockRecorder
- func (mr *MockServiceMockRecorder) GetMember(ctx, id any) *gomock.Call
- func (mr *MockServiceMockRecorder) RetireMembership(ctx, id, reason, date any) *gomock.Call
- func (mr *MockServiceMockRecorder) SaveMember(ctx, member any) *gomock.Call
- func (mr *MockServiceMockRecorder) SearchMembers(ctx, querySpecification any, postSpecification ...any) *gomock.Call
- func (mr *MockServiceMockRecorder) UpdateAddress(ctx, memberID, address any) *gomock.Call
- func (mr *MockServiceMockRecorder) UpdateContact(ctx, memberID, contact any) *gomock.Call
- func (mr *MockServiceMockRecorder) UpdatePerson(ctx, memberID, person any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRepository ¶
type MockRepository struct {
// contains filtered or unexported fields
}
MockRepository is a mock of Repository interface.
func NewMockRepository ¶
func NewMockRepository(ctrl *gomock.Controller) *MockRepository
NewMockRepository creates a new mock instance.
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepository) FindAll ¶
func (m *MockRepository) FindAll(ctx context.Context, specification wrapper.QuerySpecification) ([]*domain.Member, error)
FindAll mocks base method.
func (*MockRepository) RetireMembership ¶
RetireMembership mocks base method.
func (*MockRepository) UpdateAddress ¶
UpdateAddress mocks base method.
func (*MockRepository) UpdateContact ¶
UpdateContact mocks base method.
func (*MockRepository) UpdatePerson ¶
UpdatePerson mocks base method.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) FindAll ¶
func (mr *MockRepositoryMockRecorder) FindAll(ctx, specification any) *gomock.Call
FindAll indicates an expected call of FindAll.
func (*MockRepositoryMockRecorder) FindByID ¶
func (mr *MockRepositoryMockRecorder) FindByID(ctx, id any) *gomock.Call
FindByID indicates an expected call of FindByID.
func (*MockRepositoryMockRecorder) Insert ¶
func (mr *MockRepositoryMockRecorder) Insert(ctx, member any) *gomock.Call
Insert indicates an expected call of Insert.
func (*MockRepositoryMockRecorder) RetireMembership ¶
func (mr *MockRepositoryMockRecorder) RetireMembership(ctx, member any) *gomock.Call
RetireMembership indicates an expected call of RetireMembership.
func (*MockRepositoryMockRecorder) UpdateAddress ¶
func (mr *MockRepositoryMockRecorder) UpdateAddress(ctx, member any) *gomock.Call
UpdateAddress indicates an expected call of UpdateAddress.
func (*MockRepositoryMockRecorder) UpdateContact ¶
func (mr *MockRepositoryMockRecorder) UpdateContact(ctx, member any) *gomock.Call
UpdateContact indicates an expected call of UpdateContact.
func (*MockRepositoryMockRecorder) UpdatePerson ¶
func (mr *MockRepositoryMockRecorder) UpdatePerson(ctx, member any) *gomock.Call
UpdatePerson indicates an expected call of UpdatePerson.
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface.
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance.
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockService) RetireMembership ¶
func (m *MockService) RetireMembership(ctx context.Context, id, reason string, date time.Time) error
RetireMembership mocks base method.
func (*MockService) SaveMember ¶
SaveMember mocks base method.
func (*MockService) SearchMembers ¶
func (m *MockService) SearchMembers(ctx context.Context, querySpecification wrapper.QuerySpecification, postSpecification ...member.Specification) ([]*domain.Member, error)
SearchMembers mocks base method.
func (*MockService) UpdateAddress ¶
func (m *MockService) UpdateAddress(ctx context.Context, memberID string, address domain.Address) error
UpdateAddress mocks base method.
func (*MockService) UpdateContact ¶
func (m *MockService) UpdateContact(ctx context.Context, memberID string, contact domain.Contact) error
UpdateContact mocks base method.
func (*MockService) UpdatePerson ¶
func (m *MockService) UpdatePerson(ctx context.Context, memberID string, person domain.Person) error
UpdatePerson mocks base method.
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) GetMember ¶
func (mr *MockServiceMockRecorder) GetMember(ctx, id any) *gomock.Call
GetMember indicates an expected call of GetMember.
func (*MockServiceMockRecorder) RetireMembership ¶
func (mr *MockServiceMockRecorder) RetireMembership(ctx, id, reason, date any) *gomock.Call
RetireMembership indicates an expected call of RetireMembership.
func (*MockServiceMockRecorder) SaveMember ¶
func (mr *MockServiceMockRecorder) SaveMember(ctx, member any) *gomock.Call
SaveMember indicates an expected call of SaveMember.
func (*MockServiceMockRecorder) SearchMembers ¶
func (mr *MockServiceMockRecorder) SearchMembers(ctx, querySpecification any, postSpecification ...any) *gomock.Call
SearchMembers indicates an expected call of SearchMembers.
func (*MockServiceMockRecorder) UpdateAddress ¶
func (mr *MockServiceMockRecorder) UpdateAddress(ctx, memberID, address any) *gomock.Call
UpdateAddress indicates an expected call of UpdateAddress.
func (*MockServiceMockRecorder) UpdateContact ¶
func (mr *MockServiceMockRecorder) UpdateContact(ctx, memberID, contact any) *gomock.Call
UpdateContact indicates an expected call of UpdateContact.
func (*MockServiceMockRecorder) UpdatePerson ¶
func (mr *MockServiceMockRecorder) UpdatePerson(ctx, memberID, person any) *gomock.Call
UpdatePerson indicates an expected call of UpdatePerson.