Documentation
¶
Index ¶
- type NewRepositoryT
- type NewServiceT
- type Repository
- func (_m *Repository) Create(ctx context.Context, purchaseOrder domain.PurchaseOrders) (domain.PurchaseOrders, error)
- func (_m *Repository) GetById(ctx context.Context, id int) (domain.PurchaseOrders, error)
- func (_m *Repository) ValidadeOrderNumber(ctx context.Context, orderNumber string) (bool, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NewRepositoryT ¶
type NewServiceT ¶
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func NewRepository ¶
func NewRepository(t NewRepositoryT) *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, purchaseOrder domain.PurchaseOrders) (domain.PurchaseOrders, error)
Create provides a mock function with given fields: ctx, purchaseOrder
func (*Repository) GetById ¶
func (_m *Repository) GetById(ctx context.Context, id int) (domain.PurchaseOrders, error)
GetById provides a mock function with given fields: ctx, id
func (*Repository) ValidadeOrderNumber ¶
ValidadeOrderNumber provides a mock function with given fields: ctx, orderNumber
type Service ¶
Service is an autogenerated mock type for the Service type
func NewService ¶
func NewService(t NewServiceT) *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, purchaseOrder domain.PurchaseOrders) (domain.PurchaseOrders, error)
Create provides a mock function with given fields: ctx, purchaseOrder