users

package
v0.0.0-...-c828c98 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package users is a generated GoMock package.

Package users is a generated GoMock package.

Package users is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IUserFactory

type IUserFactory interface {
	Create(name UserName) (*User, error)
}

type IUserNotification

type IUserNotification interface {
	SetId(id UserId)
	SetName(name UserName)
}

type IUserRepository

type IUserRepository interface {
	Find(id UserId) (*User, error)
	FindByName(name UserName) (*User, error)
	Save(user User) error
	Delete(user User) error
}

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

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

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

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 NewUser

func NewUser(id UserId, name UserName) (*User, error)

func (*User) ChangeName

func (u *User) ChangeName(name UserName) error

func (User) Equals

func (u User) Equals(other User) (bool, error)

func (User) Notify

func (u User) Notify(note IUserNotification) error

type UserId

type UserId string

func NewUserId

func NewUserId(value string) (UserId, error)

type UserName

type UserName string

func NewUserName

func NewUserName(value string) (UserName, error)

type UserService

type UserService struct {
	// contains filtered or unexported fields
}

func NewUserService

func NewUserService(userRepository IUserRepository) UserService

func (UserService) Exists

func (us UserService) Exists(user User) (bool, error)

Jump to

Keyboard shortcuts

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