Documentation ¶
Index ¶
- type Repository
- func (_m *Repository) Create(ctx context.Context, cid int, companyName string, address string, ...) (seller.Seller, error)
- func (_m *Repository) Delete(ctx context.Context, id int) error
- func (_m *Repository) GetAll(ctx context.Context) ([]seller.Seller, error)
- func (_m *Repository) GetOne(ctx context.Context, id int) (seller.Seller, error)
- func (_m *Repository) Update(ctx context.Context, cid int, companyName string, address string, ...) (seller.Seller, error)
- type Service
- func (_m *Service) Create(ctx context.Context, cid int, companyName string, address string, ...) (seller.Seller, error)
- func (_m *Service) Delete(ctx context.Context, id int) error
- func (_m *Service) GetAll(ctx context.Context) ([]seller.Seller, error)
- func (_m *Service) GetOne(ctx context.Context, id int) (seller.Seller, error)
- func (_m *Service) Update(ctx context.Context, id int, cid int, companyName string, address string, ...) (seller.Seller, 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(ctx context.Context, cid int, companyName string, address string, telephone string, localityID int) (seller.Seller, error)
Create provides a mock function with given fields: ctx, cid, companyName, address, telephone, localityID
func (*Repository) Delete ¶
func (_m *Repository) Delete(ctx context.Context, id int) error
Delete provides a mock function with given fields: ctx, id
func (*Repository) Update ¶
func (_m *Repository) Update(ctx context.Context, cid int, companyName string, address string, telephone string, localityID int, _a6 seller.Seller) (seller.Seller, error)
Update provides a mock function with given fields: ctx, cid, companyName, address, telephone, localityID, _a6
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) Create ¶
func (_m *Service) Create(ctx context.Context, cid int, companyName string, address string, telephone string, localityID int) (seller.Seller, error)
Create provides a mock function with given fields: ctx, cid, companyName, address, telephone, localityID