Documentation ¶
Index ¶
- type Repository
- func (_m *Repository) Create(cardNum int, firstName string, lastName string, warehouseId int) (employee.Employee, error)
- func (_m *Repository) Delete(id int) error
- func (_m *Repository) GetAll() ([]employee.Employee, error)
- func (_m *Repository) GetById(id int) (employee.Employee, error)
- func (_m *Repository) Update(id int, firstName string, lastName string, warehouseId int) (employee.Employee, error)
- type Services
- func (_m *Services) Create(cardNum int, firstName string, lastName string, warehouseId int) (employee.Employee, error)
- func (_m *Services) Delete(id int) error
- func (_m *Services) GetAll() ([]employee.Employee, error)
- func (_m *Services) GetById(id int) (employee.Employee, error)
- func (_m *Services) GetCount(id int, counter int) (employee.EmployeeOrderCount, error)
- func (_m *Services) Update(emp employee.Employee, id int) (employee.Employee, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func NewRepository ¶
func NewRepository(t mockConstructorTestingTNewRepository) *Repository
NewRepository creates a new instance of Repository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Repository) Create ¶
func (_m *Repository) Create(cardNum int, firstName string, lastName string, warehouseId int) (employee.Employee, error)
Create provides a mock function with given fields: cardNum, firstName, lastName, warehouseId
func (*Repository) Delete ¶
func (_m *Repository) Delete(id int) error
Delete provides a mock function with given fields: id
func (*Repository) GetAll ¶
func (_m *Repository) GetAll() ([]employee.Employee, error)
GetAll provides a mock function with given fields:
type Services ¶
Services is an autogenerated mock type for the Services type
func NewServices ¶
func NewServices(t mockConstructorTestingTNewServices) *Services
NewServices creates a new instance of Services. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Services) Create ¶
func (_m *Services) Create(cardNum int, firstName string, lastName string, warehouseId int) (employee.Employee, error)
Create provides a mock function with given fields: cardNum, firstName, lastName, warehouseId