Documentation
¶
Index ¶
- type Service
- func (_m *Service) CreateWarehouse(code string, address string, tel string, localityID int) (domain.Warehouse, error)
- func (_m *Service) DeleteWarehouse(id int) error
- func (_m *Service) GetAll() []domain.Warehouse
- func (_m *Service) GetByID(id int) (domain.Warehouse, error)
- func (_m *Service) 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 Service ¶
Service is an autogenerated mock type for the Service type
func NewService ¶
func NewService(t mockConstructorTestingTNewService) *Service
NewService creates a new instance of Service. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Service) CreateWarehouse ¶
func (_m *Service) 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 (*Service) DeleteWarehouse ¶
DeleteWarehouse provides a mock function with given fields: id
Click to show internal directories.
Click to hide internal directories.