mock_service

package
v0.0.0-...-e85e4ab Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	mock.Mock
}

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

func (_m *Service) DeleteWarehouse(id int) error

DeleteWarehouse provides a mock function with given fields: id

func (*Service) GetAll

func (_m *Service) GetAll() []domain.Warehouse

GetAll provides a mock function with given fields:

func (*Service) GetByID

func (_m *Service) GetByID(id int) (domain.Warehouse, error)

GetByID provides a mock function with given fields: id

func (*Service) UpdatedWarehouseID

func (_m *Service) UpdatedWarehouseID(id int, code string) (domain.Warehouse, error)

UpdatedWarehouseID provides a mock function with given fields: id, code

Jump to

Keyboard shortcuts

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