Documentation
¶
Overview ¶
Package users is a generated GoMock package.
Package users is a generated GoMock package.
Package users is a generated GoMock package.
Index ¶
- type IUserFactory
- type IUserNotification
- type IUserRepository
- type MockIUserFactory
- type MockIUserFactoryMockRecorder
- type MockIUserNotification
- type MockIUserNotificationMockRecorder
- type MockIUserRepository
- func (m *MockIUserRepository) Delete(user User) error
- func (m *MockIUserRepository) EXPECT() *MockIUserRepositoryMockRecorder
- func (m *MockIUserRepository) Find(id UserId) (*User, error)
- func (m *MockIUserRepository) FindByName(name UserName) (*User, error)
- func (m *MockIUserRepository) Save(user User) error
- type MockIUserRepositoryMockRecorder
- func (mr *MockIUserRepositoryMockRecorder) Delete(user interface{}) *gomock.Call
- func (mr *MockIUserRepositoryMockRecorder) Find(id interface{}) *gomock.Call
- func (mr *MockIUserRepositoryMockRecorder) FindByName(name interface{}) *gomock.Call
- func (mr *MockIUserRepositoryMockRecorder) Save(user interface{}) *gomock.Call
- type User
- type UserId
- type UserName
- type UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IUserFactory ¶
type IUserNotification ¶
type IUserRepository ¶
type MockIUserFactory ¶
type MockIUserFactory struct {
// contains filtered or unexported fields
}
MockIUserFactory is a mock of IUserFactory interface.
func NewMockIUserFactory ¶
func NewMockIUserFactory(ctrl *gomock.Controller) *MockIUserFactory
NewMockIUserFactory creates a new mock instance.
func (*MockIUserFactory) Create ¶
func (m *MockIUserFactory) Create(name UserName) (*User, error)
Create mocks base method.
func (*MockIUserFactory) EXPECT ¶
func (m *MockIUserFactory) EXPECT() *MockIUserFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockIUserFactoryMockRecorder ¶
type MockIUserFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockIUserFactoryMockRecorder is the mock recorder for MockIUserFactory.
func (*MockIUserFactoryMockRecorder) Create ¶
func (mr *MockIUserFactoryMockRecorder) Create(name interface{}) *gomock.Call
Create indicates an expected call of Create.
type MockIUserNotification ¶
type MockIUserNotification struct {
// contains filtered or unexported fields
}
MockIUserNotification is a mock of IUserNotification interface.
func NewMockIUserNotification ¶
func NewMockIUserNotification(ctrl *gomock.Controller) *MockIUserNotification
NewMockIUserNotification creates a new mock instance.
func (*MockIUserNotification) EXPECT ¶
func (m *MockIUserNotification) EXPECT() *MockIUserNotificationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIUserNotification) SetId ¶
func (m *MockIUserNotification) SetId(id UserId)
SetId mocks base method.
func (*MockIUserNotification) SetName ¶
func (m *MockIUserNotification) SetName(name UserName)
SetName mocks base method.
type MockIUserNotificationMockRecorder ¶
type MockIUserNotificationMockRecorder struct {
// contains filtered or unexported fields
}
MockIUserNotificationMockRecorder is the mock recorder for MockIUserNotification.
func (*MockIUserNotificationMockRecorder) SetId ¶
func (mr *MockIUserNotificationMockRecorder) SetId(id interface{}) *gomock.Call
SetId indicates an expected call of SetId.
func (*MockIUserNotificationMockRecorder) SetName ¶
func (mr *MockIUserNotificationMockRecorder) SetName(name interface{}) *gomock.Call
SetName indicates an expected call of SetName.
type MockIUserRepository ¶
type MockIUserRepository struct {
// contains filtered or unexported fields
}
MockIUserRepository is a mock of IUserRepository interface.
func NewMockIUserRepository ¶
func NewMockIUserRepository(ctrl *gomock.Controller) *MockIUserRepository
NewMockIUserRepository creates a new mock instance.
func (*MockIUserRepository) Delete ¶
func (m *MockIUserRepository) Delete(user User) error
Delete mocks base method.
func (*MockIUserRepository) EXPECT ¶
func (m *MockIUserRepository) EXPECT() *MockIUserRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIUserRepository) Find ¶
func (m *MockIUserRepository) Find(id UserId) (*User, error)
Find mocks base method.
func (*MockIUserRepository) FindByName ¶
func (m *MockIUserRepository) FindByName(name UserName) (*User, error)
FindByName mocks base method.
func (*MockIUserRepository) Save ¶
func (m *MockIUserRepository) Save(user User) error
Save mocks base method.
type MockIUserRepositoryMockRecorder ¶
type MockIUserRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockIUserRepositoryMockRecorder is the mock recorder for MockIUserRepository.
func (*MockIUserRepositoryMockRecorder) Delete ¶
func (mr *MockIUserRepositoryMockRecorder) Delete(user interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockIUserRepositoryMockRecorder) Find ¶
func (mr *MockIUserRepositoryMockRecorder) Find(id interface{}) *gomock.Call
Find indicates an expected call of Find.
func (*MockIUserRepositoryMockRecorder) FindByName ¶
func (mr *MockIUserRepositoryMockRecorder) FindByName(name interface{}) *gomock.Call
FindByName indicates an expected call of FindByName.
func (*MockIUserRepositoryMockRecorder) Save ¶
func (mr *MockIUserRepositoryMockRecorder) Save(user interface{}) *gomock.Call
Save indicates an expected call of Save.
type User ¶
type User struct { Id UserId // contains filtered or unexported fields }
func (*User) ChangeName ¶
func (User) Notify ¶
func (u User) Notify(note IUserNotification) error
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService(userRepository IUserRepository) UserService