Documentation ¶
Index ¶
- type Repository
- func (_m *Repository) CreateWarehouse(code string, address string, tel string, localityID int) (domain.Warehouse, error)
- func (_m *Repository) DeleteWarehouse(id int) error
- func (_m *Repository) FindByWarehouseCode(code string) (domain.Warehouse, error)
- func (_m *Repository) GetAll() []domain.Warehouse
- func (_m *Repository) GetByID(id int) (domain.Warehouse, error)
- func (_m *Repository) UpdatedWarehouseID(id int, code string) (domain.Warehouse, 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) CreateWarehouse ¶
func (_m *Repository) CreateWarehouse(code string, address string, tel string, localityID int) (domain.Warehouse, error)
CreateWarehouse provides a mock function with given fields: code, address, tel, localityID
func (*Repository) DeleteWarehouse ¶
func (_m *Repository) DeleteWarehouse(id int) error
DeleteWarehouse provides a mock function with given fields: id
func (*Repository) FindByWarehouseCode ¶
func (_m *Repository) FindByWarehouseCode(code string) (domain.Warehouse, error)
FindByWarehouseCode provides a mock function with given fields: code
func (*Repository) GetAll ¶
func (_m *Repository) GetAll() []domain.Warehouse
GetAll provides a mock function with given fields:
func (*Repository) GetByID ¶
func (_m *Repository) GetByID(id int) (domain.Warehouse, error)
GetByID provides a mock function with given fields: id
func (*Repository) UpdatedWarehouseID ¶
UpdatedWarehouseID provides a mock function with given fields: id, code
Click to show internal directories.
Click to hide internal directories.