Documentation ¶
Index ¶
- type DatabaseRepository
- func (_m *DatabaseRepository) CreateCategory(e *entities.Category) (*entities.Category, error)
- func (_m *DatabaseRepository) CreateManufacturer(e *entities.Manufacturer) (*entities.Manufacturer, error)
- func (_m *DatabaseRepository) CreateProduct(e *entities.Product) (*entities.Product, error)
- func (_m *DatabaseRepository) CreateService(e *entities.Service) (*entities.Service, error)
- func (_m *DatabaseRepository) CreateServiceCategory(e *entities.ServiceCategory) (*entities.ServiceCategory, error)
- func (_m *DatabaseRepository) DeleteCategory(id entities.ID) error
- func (_m *DatabaseRepository) DeleteImage(id entities.ID) error
- func (_m *DatabaseRepository) DeleteManufacturer(id entities.ID) error
- func (_m *DatabaseRepository) DeleteProduct(id entities.ID) error
- func (_m *DatabaseRepository) DeleteService(id entities.ID) error
- func (_m *DatabaseRepository) DeleteServiceCategory(id entities.ID) error
- func (_m *DatabaseRepository) EXPECT() *DatabaseRepository_Expecter
- func (_m *DatabaseRepository) GetCategory(id entities.ID) (*entities.Category, error)
- func (_m *DatabaseRepository) GetImage(id entities.ID) (*entities.Image, error)
- func (_m *DatabaseRepository) GetManufacturer(id entities.ID) (*entities.Manufacturer, error)
- func (_m *DatabaseRepository) GetProduct(id entities.ID) (*entities.Product, error)
- func (_m *DatabaseRepository) GetService(id entities.ID) (*entities.Service, error)
- func (_m *DatabaseRepository) GetServiceCategory(id entities.ID) (*entities.ServiceCategory, error)
- func (_m *DatabaseRepository) ListCategories() ([]*entities.Category, error)
- func (_m *DatabaseRepository) ListManufacturers() ([]*entities.Manufacturer, error)
- func (_m *DatabaseRepository) ListProducts() ([]*entities.Product, error)
- func (_m *DatabaseRepository) ListServiceCategories() ([]*entities.ServiceCategory, error)
- func (_m *DatabaseRepository) ListServices(optionalServiceCategoryID entities.ID) ([]*entities.Service, error)
- func (_m *DatabaseRepository) UpdateCategory(e *entities.Category) (*entities.Category, error)
- func (_m *DatabaseRepository) UpdateImage(id entities.ID, ownerID entities.ID, newOrder int) ([]*entities.Image, error)
- func (_m *DatabaseRepository) UpdateManufacturer(e *entities.Manufacturer) (*entities.Manufacturer, error)
- func (_m *DatabaseRepository) UpdateProduct(e *entities.Product) (*entities.Product, error)
- func (_m *DatabaseRepository) UpdateProductImages(id entities.ID, images []*entities.Image) ([]*entities.Image, error)
- func (_m *DatabaseRepository) UpdateService(e *entities.Service) (*entities.Service, error)
- func (_m *DatabaseRepository) UpdateServiceCategory(e *entities.ServiceCategory) (*entities.ServiceCategory, error)
- type DatabaseRepository_CreateCategory_Call
- func (_c *DatabaseRepository_CreateCategory_Call) Return(_a0 *entities.Category, _a1 error) *DatabaseRepository_CreateCategory_Call
- func (_c *DatabaseRepository_CreateCategory_Call) Run(run func(e *entities.Category)) *DatabaseRepository_CreateCategory_Call
- func (_c *DatabaseRepository_CreateCategory_Call) RunAndReturn(run func(*entities.Category) (*entities.Category, error)) *DatabaseRepository_CreateCategory_Call
- type DatabaseRepository_CreateManufacturer_Call
- func (_c *DatabaseRepository_CreateManufacturer_Call) Return(_a0 *entities.Manufacturer, _a1 error) *DatabaseRepository_CreateManufacturer_Call
- func (_c *DatabaseRepository_CreateManufacturer_Call) Run(run func(e *entities.Manufacturer)) *DatabaseRepository_CreateManufacturer_Call
- func (_c *DatabaseRepository_CreateManufacturer_Call) RunAndReturn(run func(*entities.Manufacturer) (*entities.Manufacturer, error)) *DatabaseRepository_CreateManufacturer_Call
- type DatabaseRepository_CreateProduct_Call
- func (_c *DatabaseRepository_CreateProduct_Call) Return(_a0 *entities.Product, _a1 error) *DatabaseRepository_CreateProduct_Call
- func (_c *DatabaseRepository_CreateProduct_Call) Run(run func(e *entities.Product)) *DatabaseRepository_CreateProduct_Call
- func (_c *DatabaseRepository_CreateProduct_Call) RunAndReturn(run func(*entities.Product) (*entities.Product, error)) *DatabaseRepository_CreateProduct_Call
- type DatabaseRepository_CreateServiceCategory_Call
- func (_c *DatabaseRepository_CreateServiceCategory_Call) Return(_a0 *entities.ServiceCategory, _a1 error) *DatabaseRepository_CreateServiceCategory_Call
- func (_c *DatabaseRepository_CreateServiceCategory_Call) Run(run func(e *entities.ServiceCategory)) *DatabaseRepository_CreateServiceCategory_Call
- func (_c *DatabaseRepository_CreateServiceCategory_Call) RunAndReturn(run func(*entities.ServiceCategory) (*entities.ServiceCategory, error)) *DatabaseRepository_CreateServiceCategory_Call
- type DatabaseRepository_CreateService_Call
- func (_c *DatabaseRepository_CreateService_Call) Return(_a0 *entities.Service, _a1 error) *DatabaseRepository_CreateService_Call
- func (_c *DatabaseRepository_CreateService_Call) Run(run func(e *entities.Service)) *DatabaseRepository_CreateService_Call
- func (_c *DatabaseRepository_CreateService_Call) RunAndReturn(run func(*entities.Service) (*entities.Service, error)) *DatabaseRepository_CreateService_Call
- type DatabaseRepository_DeleteCategory_Call
- func (_c *DatabaseRepository_DeleteCategory_Call) Return(_a0 error) *DatabaseRepository_DeleteCategory_Call
- func (_c *DatabaseRepository_DeleteCategory_Call) Run(run func(id entities.ID)) *DatabaseRepository_DeleteCategory_Call
- func (_c *DatabaseRepository_DeleteCategory_Call) RunAndReturn(run func(entities.ID) error) *DatabaseRepository_DeleteCategory_Call
- type DatabaseRepository_DeleteImage_Call
- func (_c *DatabaseRepository_DeleteImage_Call) Return(_a0 error) *DatabaseRepository_DeleteImage_Call
- func (_c *DatabaseRepository_DeleteImage_Call) Run(run func(id entities.ID)) *DatabaseRepository_DeleteImage_Call
- func (_c *DatabaseRepository_DeleteImage_Call) RunAndReturn(run func(entities.ID) error) *DatabaseRepository_DeleteImage_Call
- type DatabaseRepository_DeleteManufacturer_Call
- func (_c *DatabaseRepository_DeleteManufacturer_Call) Return(_a0 error) *DatabaseRepository_DeleteManufacturer_Call
- func (_c *DatabaseRepository_DeleteManufacturer_Call) Run(run func(id entities.ID)) *DatabaseRepository_DeleteManufacturer_Call
- func (_c *DatabaseRepository_DeleteManufacturer_Call) RunAndReturn(run func(entities.ID) error) *DatabaseRepository_DeleteManufacturer_Call
- type DatabaseRepository_DeleteProduct_Call
- func (_c *DatabaseRepository_DeleteProduct_Call) Return(_a0 error) *DatabaseRepository_DeleteProduct_Call
- func (_c *DatabaseRepository_DeleteProduct_Call) Run(run func(id entities.ID)) *DatabaseRepository_DeleteProduct_Call
- func (_c *DatabaseRepository_DeleteProduct_Call) RunAndReturn(run func(entities.ID) error) *DatabaseRepository_DeleteProduct_Call
- type DatabaseRepository_DeleteServiceCategory_Call
- func (_c *DatabaseRepository_DeleteServiceCategory_Call) Return(_a0 error) *DatabaseRepository_DeleteServiceCategory_Call
- func (_c *DatabaseRepository_DeleteServiceCategory_Call) Run(run func(id entities.ID)) *DatabaseRepository_DeleteServiceCategory_Call
- func (_c *DatabaseRepository_DeleteServiceCategory_Call) RunAndReturn(run func(entities.ID) error) *DatabaseRepository_DeleteServiceCategory_Call
- type DatabaseRepository_DeleteService_Call
- func (_c *DatabaseRepository_DeleteService_Call) Return(_a0 error) *DatabaseRepository_DeleteService_Call
- func (_c *DatabaseRepository_DeleteService_Call) Run(run func(id entities.ID)) *DatabaseRepository_DeleteService_Call
- func (_c *DatabaseRepository_DeleteService_Call) RunAndReturn(run func(entities.ID) error) *DatabaseRepository_DeleteService_Call
- type DatabaseRepository_Expecter
- func (_e *DatabaseRepository_Expecter) CreateCategory(e interface{}) *DatabaseRepository_CreateCategory_Call
- func (_e *DatabaseRepository_Expecter) CreateManufacturer(e interface{}) *DatabaseRepository_CreateManufacturer_Call
- func (_e *DatabaseRepository_Expecter) CreateProduct(e interface{}) *DatabaseRepository_CreateProduct_Call
- func (_e *DatabaseRepository_Expecter) CreateService(e interface{}) *DatabaseRepository_CreateService_Call
- func (_e *DatabaseRepository_Expecter) CreateServiceCategory(e interface{}) *DatabaseRepository_CreateServiceCategory_Call
- func (_e *DatabaseRepository_Expecter) DeleteCategory(id interface{}) *DatabaseRepository_DeleteCategory_Call
- func (_e *DatabaseRepository_Expecter) DeleteImage(id interface{}) *DatabaseRepository_DeleteImage_Call
- func (_e *DatabaseRepository_Expecter) DeleteManufacturer(id interface{}) *DatabaseRepository_DeleteManufacturer_Call
- func (_e *DatabaseRepository_Expecter) DeleteProduct(id interface{}) *DatabaseRepository_DeleteProduct_Call
- func (_e *DatabaseRepository_Expecter) DeleteService(id interface{}) *DatabaseRepository_DeleteService_Call
- func (_e *DatabaseRepository_Expecter) DeleteServiceCategory(id interface{}) *DatabaseRepository_DeleteServiceCategory_Call
- func (_e *DatabaseRepository_Expecter) GetCategory(id interface{}) *DatabaseRepository_GetCategory_Call
- func (_e *DatabaseRepository_Expecter) GetImage(id interface{}) *DatabaseRepository_GetImage_Call
- func (_e *DatabaseRepository_Expecter) GetManufacturer(id interface{}) *DatabaseRepository_GetManufacturer_Call
- func (_e *DatabaseRepository_Expecter) GetProduct(id interface{}) *DatabaseRepository_GetProduct_Call
- func (_e *DatabaseRepository_Expecter) GetService(id interface{}) *DatabaseRepository_GetService_Call
- func (_e *DatabaseRepository_Expecter) GetServiceCategory(id interface{}) *DatabaseRepository_GetServiceCategory_Call
- func (_e *DatabaseRepository_Expecter) ListCategories() *DatabaseRepository_ListCategories_Call
- func (_e *DatabaseRepository_Expecter) ListManufacturers() *DatabaseRepository_ListManufacturers_Call
- func (_e *DatabaseRepository_Expecter) ListProducts() *DatabaseRepository_ListProducts_Call
- func (_e *DatabaseRepository_Expecter) ListServiceCategories() *DatabaseRepository_ListServiceCategories_Call
- func (_e *DatabaseRepository_Expecter) ListServices(optionalServiceCategoryID interface{}) *DatabaseRepository_ListServices_Call
- func (_e *DatabaseRepository_Expecter) UpdateCategory(e interface{}) *DatabaseRepository_UpdateCategory_Call
- func (_e *DatabaseRepository_Expecter) UpdateImage(id interface{}, ownerID interface{}, newOrder interface{}) *DatabaseRepository_UpdateImage_Call
- func (_e *DatabaseRepository_Expecter) UpdateManufacturer(e interface{}) *DatabaseRepository_UpdateManufacturer_Call
- func (_e *DatabaseRepository_Expecter) UpdateProduct(e interface{}) *DatabaseRepository_UpdateProduct_Call
- func (_e *DatabaseRepository_Expecter) UpdateProductImages(id interface{}, images interface{}) *DatabaseRepository_UpdateProductImages_Call
- func (_e *DatabaseRepository_Expecter) UpdateService(e interface{}) *DatabaseRepository_UpdateService_Call
- func (_e *DatabaseRepository_Expecter) UpdateServiceCategory(e interface{}) *DatabaseRepository_UpdateServiceCategory_Call
- type DatabaseRepository_GetCategory_Call
- func (_c *DatabaseRepository_GetCategory_Call) Return(_a0 *entities.Category, _a1 error) *DatabaseRepository_GetCategory_Call
- func (_c *DatabaseRepository_GetCategory_Call) Run(run func(id entities.ID)) *DatabaseRepository_GetCategory_Call
- func (_c *DatabaseRepository_GetCategory_Call) RunAndReturn(run func(entities.ID) (*entities.Category, error)) *DatabaseRepository_GetCategory_Call
- type DatabaseRepository_GetImage_Call
- func (_c *DatabaseRepository_GetImage_Call) Return(_a0 *entities.Image, _a1 error) *DatabaseRepository_GetImage_Call
- func (_c *DatabaseRepository_GetImage_Call) Run(run func(id entities.ID)) *DatabaseRepository_GetImage_Call
- func (_c *DatabaseRepository_GetImage_Call) RunAndReturn(run func(entities.ID) (*entities.Image, error)) *DatabaseRepository_GetImage_Call
- type DatabaseRepository_GetManufacturer_Call
- func (_c *DatabaseRepository_GetManufacturer_Call) Return(_a0 *entities.Manufacturer, _a1 error) *DatabaseRepository_GetManufacturer_Call
- func (_c *DatabaseRepository_GetManufacturer_Call) Run(run func(id entities.ID)) *DatabaseRepository_GetManufacturer_Call
- func (_c *DatabaseRepository_GetManufacturer_Call) RunAndReturn(run func(entities.ID) (*entities.Manufacturer, error)) *DatabaseRepository_GetManufacturer_Call
- type DatabaseRepository_GetProduct_Call
- func (_c *DatabaseRepository_GetProduct_Call) Return(_a0 *entities.Product, _a1 error) *DatabaseRepository_GetProduct_Call
- func (_c *DatabaseRepository_GetProduct_Call) Run(run func(id entities.ID)) *DatabaseRepository_GetProduct_Call
- func (_c *DatabaseRepository_GetProduct_Call) RunAndReturn(run func(entities.ID) (*entities.Product, error)) *DatabaseRepository_GetProduct_Call
- type DatabaseRepository_GetServiceCategory_Call
- func (_c *DatabaseRepository_GetServiceCategory_Call) Return(_a0 *entities.ServiceCategory, _a1 error) *DatabaseRepository_GetServiceCategory_Call
- func (_c *DatabaseRepository_GetServiceCategory_Call) Run(run func(id entities.ID)) *DatabaseRepository_GetServiceCategory_Call
- func (_c *DatabaseRepository_GetServiceCategory_Call) RunAndReturn(run func(entities.ID) (*entities.ServiceCategory, error)) *DatabaseRepository_GetServiceCategory_Call
- type DatabaseRepository_GetService_Call
- func (_c *DatabaseRepository_GetService_Call) Return(_a0 *entities.Service, _a1 error) *DatabaseRepository_GetService_Call
- func (_c *DatabaseRepository_GetService_Call) Run(run func(id entities.ID)) *DatabaseRepository_GetService_Call
- func (_c *DatabaseRepository_GetService_Call) RunAndReturn(run func(entities.ID) (*entities.Service, error)) *DatabaseRepository_GetService_Call
- type DatabaseRepository_ListCategories_Call
- func (_c *DatabaseRepository_ListCategories_Call) Return(_a0 []*entities.Category, _a1 error) *DatabaseRepository_ListCategories_Call
- func (_c *DatabaseRepository_ListCategories_Call) Run(run func()) *DatabaseRepository_ListCategories_Call
- func (_c *DatabaseRepository_ListCategories_Call) RunAndReturn(run func() ([]*entities.Category, error)) *DatabaseRepository_ListCategories_Call
- type DatabaseRepository_ListManufacturers_Call
- func (_c *DatabaseRepository_ListManufacturers_Call) Return(_a0 []*entities.Manufacturer, _a1 error) *DatabaseRepository_ListManufacturers_Call
- func (_c *DatabaseRepository_ListManufacturers_Call) Run(run func()) *DatabaseRepository_ListManufacturers_Call
- func (_c *DatabaseRepository_ListManufacturers_Call) RunAndReturn(run func() ([]*entities.Manufacturer, error)) *DatabaseRepository_ListManufacturers_Call
- type DatabaseRepository_ListProducts_Call
- func (_c *DatabaseRepository_ListProducts_Call) Return(_a0 []*entities.Product, _a1 error) *DatabaseRepository_ListProducts_Call
- func (_c *DatabaseRepository_ListProducts_Call) Run(run func()) *DatabaseRepository_ListProducts_Call
- func (_c *DatabaseRepository_ListProducts_Call) RunAndReturn(run func() ([]*entities.Product, error)) *DatabaseRepository_ListProducts_Call
- type DatabaseRepository_ListServiceCategories_Call
- func (_c *DatabaseRepository_ListServiceCategories_Call) Return(_a0 []*entities.ServiceCategory, _a1 error) *DatabaseRepository_ListServiceCategories_Call
- func (_c *DatabaseRepository_ListServiceCategories_Call) Run(run func()) *DatabaseRepository_ListServiceCategories_Call
- func (_c *DatabaseRepository_ListServiceCategories_Call) RunAndReturn(run func() ([]*entities.ServiceCategory, error)) *DatabaseRepository_ListServiceCategories_Call
- type DatabaseRepository_ListServices_Call
- func (_c *DatabaseRepository_ListServices_Call) Return(_a0 []*entities.Service, _a1 error) *DatabaseRepository_ListServices_Call
- func (_c *DatabaseRepository_ListServices_Call) Run(run func(optionalServiceCategoryID entities.ID)) *DatabaseRepository_ListServices_Call
- func (_c *DatabaseRepository_ListServices_Call) RunAndReturn(run func(entities.ID) ([]*entities.Service, error)) *DatabaseRepository_ListServices_Call
- type DatabaseRepository_UpdateCategory_Call
- func (_c *DatabaseRepository_UpdateCategory_Call) Return(_a0 *entities.Category, _a1 error) *DatabaseRepository_UpdateCategory_Call
- func (_c *DatabaseRepository_UpdateCategory_Call) Run(run func(e *entities.Category)) *DatabaseRepository_UpdateCategory_Call
- func (_c *DatabaseRepository_UpdateCategory_Call) RunAndReturn(run func(*entities.Category) (*entities.Category, error)) *DatabaseRepository_UpdateCategory_Call
- type DatabaseRepository_UpdateImage_Call
- func (_c *DatabaseRepository_UpdateImage_Call) Return(_a0 []*entities.Image, _a1 error) *DatabaseRepository_UpdateImage_Call
- func (_c *DatabaseRepository_UpdateImage_Call) Run(run func(id entities.ID, ownerID entities.ID, newOrder int)) *DatabaseRepository_UpdateImage_Call
- func (_c *DatabaseRepository_UpdateImage_Call) RunAndReturn(run func(entities.ID, entities.ID, int) ([]*entities.Image, error)) *DatabaseRepository_UpdateImage_Call
- type DatabaseRepository_UpdateManufacturer_Call
- func (_c *DatabaseRepository_UpdateManufacturer_Call) Return(_a0 *entities.Manufacturer, _a1 error) *DatabaseRepository_UpdateManufacturer_Call
- func (_c *DatabaseRepository_UpdateManufacturer_Call) Run(run func(e *entities.Manufacturer)) *DatabaseRepository_UpdateManufacturer_Call
- func (_c *DatabaseRepository_UpdateManufacturer_Call) RunAndReturn(run func(*entities.Manufacturer) (*entities.Manufacturer, error)) *DatabaseRepository_UpdateManufacturer_Call
- type DatabaseRepository_UpdateProductImages_Call
- func (_c *DatabaseRepository_UpdateProductImages_Call) Return(_a0 []*entities.Image, _a1 error) *DatabaseRepository_UpdateProductImages_Call
- func (_c *DatabaseRepository_UpdateProductImages_Call) Run(run func(id entities.ID, images []*entities.Image)) *DatabaseRepository_UpdateProductImages_Call
- func (_c *DatabaseRepository_UpdateProductImages_Call) RunAndReturn(run func(entities.ID, []*entities.Image) ([]*entities.Image, error)) *DatabaseRepository_UpdateProductImages_Call
- type DatabaseRepository_UpdateProduct_Call
- func (_c *DatabaseRepository_UpdateProduct_Call) Return(_a0 *entities.Product, _a1 error) *DatabaseRepository_UpdateProduct_Call
- func (_c *DatabaseRepository_UpdateProduct_Call) Run(run func(e *entities.Product)) *DatabaseRepository_UpdateProduct_Call
- func (_c *DatabaseRepository_UpdateProduct_Call) RunAndReturn(run func(*entities.Product) (*entities.Product, error)) *DatabaseRepository_UpdateProduct_Call
- type DatabaseRepository_UpdateServiceCategory_Call
- func (_c *DatabaseRepository_UpdateServiceCategory_Call) Return(_a0 *entities.ServiceCategory, _a1 error) *DatabaseRepository_UpdateServiceCategory_Call
- func (_c *DatabaseRepository_UpdateServiceCategory_Call) Run(run func(e *entities.ServiceCategory)) *DatabaseRepository_UpdateServiceCategory_Call
- func (_c *DatabaseRepository_UpdateServiceCategory_Call) RunAndReturn(run func(*entities.ServiceCategory) (*entities.ServiceCategory, error)) *DatabaseRepository_UpdateServiceCategory_Call
- type DatabaseRepository_UpdateService_Call
- func (_c *DatabaseRepository_UpdateService_Call) Return(_a0 *entities.Service, _a1 error) *DatabaseRepository_UpdateService_Call
- func (_c *DatabaseRepository_UpdateService_Call) Run(run func(e *entities.Service)) *DatabaseRepository_UpdateService_Call
- func (_c *DatabaseRepository_UpdateService_Call) RunAndReturn(run func(*entities.Service) (*entities.Service, error)) *DatabaseRepository_UpdateService_Call
- type StorageRepository
- type StorageRepository_DeleteFile_Call
- func (_c *StorageRepository_DeleteFile_Call) Return(_a0 error) *StorageRepository_DeleteFile_Call
- func (_c *StorageRepository_DeleteFile_Call) Run(run func(filename string)) *StorageRepository_DeleteFile_Call
- func (_c *StorageRepository_DeleteFile_Call) RunAndReturn(run func(string) error) *StorageRepository_DeleteFile_Call
- type StorageRepository_Expecter
- type StorageRepository_SaveFile_Call
- func (_c *StorageRepository_SaveFile_Call) Return(_a0 error) *StorageRepository_SaveFile_Call
- func (_c *StorageRepository_SaveFile_Call) Run(run func(filename string, content []byte)) *StorageRepository_SaveFile_Call
- func (_c *StorageRepository_SaveFile_Call) RunAndReturn(run func(string, []byte) error) *StorageRepository_SaveFile_Call
- type Usecase
- func (_m *Usecase) AddProductImages(id entities.ID, images map[string][]byte, ...) (*entities.Product, error)
- func (_m *Usecase) CreateCategory(e *entities.Category) (*entities.Category, error)
- func (_m *Usecase) CreateManufacturer(e *entities.Manufacturer) (*entities.Manufacturer, error)
- func (_m *Usecase) CreateProduct(e *entities.Product) (*entities.Product, error)
- func (_m *Usecase) CreateService(e *entities.Service) (*entities.Service, error)
- func (_m *Usecase) CreateServiceCategory(e *entities.ServiceCategory) (*entities.ServiceCategory, error)
- func (_m *Usecase) DeleteCategory(id entities.ID) error
- func (_m *Usecase) DeleteCategoryImage(categoryID entities.ID) error
- func (_m *Usecase) DeleteManufacturer(id entities.ID) error
- func (_m *Usecase) DeleteManufacturerImage(manufacturerID entities.ID) error
- func (_m *Usecase) DeleteProduct(id entities.ID) error
- func (_m *Usecase) DeleteProductImage(productID entities.ID, imageID entities.ID) error
- func (_m *Usecase) DeleteService(id entities.ID) error
- func (_m *Usecase) DeleteServiceCategory(id entities.ID) error
- func (_m *Usecase) EXPECT() *Usecase_Expecter
- func (_m *Usecase) GetCategory(id entities.ID, imageConfigs map[string]imageproxy.ImageConfig) (*entities.Category, error)
- func (_m *Usecase) GetManufacturer(id entities.ID, imageConfigs map[string]imageproxy.ImageConfig) (*entities.Manufacturer, error)
- func (_m *Usecase) GetProduct(id entities.ID, resolved bool, imageConfigs map[string]imageproxy.ImageConfig) (*entities.ResolvedProduct, error)
- func (_m *Usecase) GetService(id entities.ID) (*entities.Service, error)
- func (_m *Usecase) GetServiceCategory(id entities.ID, resolved bool) (*entities.ResolvedServiceCategory, error)
- func (_m *Usecase) ListCategories(imageConfigs map[string]imageproxy.ImageConfig) ([]*entities.Category, error)
- func (_m *Usecase) ListManufacturers(imageConfigs map[string]imageproxy.ImageConfig) ([]*entities.Manufacturer, error)
- func (_m *Usecase) ListProducts(imageConfigs map[string]imageproxy.ImageConfig) ([]*entities.Product, error)
- func (_m *Usecase) ListServiceCategories(resolved bool) ([]*entities.ResolvedServiceCategory, error)
- func (_m *Usecase) UpdateCategory(e *entities.Category) (*entities.Category, error)
- func (_m *Usecase) UpdateManufacturer(e *entities.Manufacturer) (*entities.Manufacturer, error)
- func (_m *Usecase) UpdateProduct(e *entities.Product) (*entities.Product, error)
- func (_m *Usecase) UpdateProductImage(productID entities.ID, imageID entities.ID, order int) ([]*entities.Image, error)
- func (_m *Usecase) UpdateService(e *entities.Service) (*entities.Service, error)
- func (_m *Usecase) UpdateServiceCategory(e *entities.ServiceCategory) (*entities.ServiceCategory, error)
- func (_m *Usecase) UpsertCategoryImage(categoryID entities.ID, imageName string, imageContent []byte, ...) (*entities.Category, error)
- func (_m *Usecase) UpsertManufacturerImage(manufacturerID entities.ID, imageName string, imageContent []byte, ...) (*entities.Manufacturer, error)
- type Usecase_AddProductImages_Call
- func (_c *Usecase_AddProductImages_Call) Return(_a0 *entities.Product, _a1 error) *Usecase_AddProductImages_Call
- func (_c *Usecase_AddProductImages_Call) Run(run func(id entities.ID, images map[string][]byte, ...)) *Usecase_AddProductImages_Call
- func (_c *Usecase_AddProductImages_Call) RunAndReturn(...) *Usecase_AddProductImages_Call
- type Usecase_CreateCategory_Call
- func (_c *Usecase_CreateCategory_Call) Return(_a0 *entities.Category, _a1 error) *Usecase_CreateCategory_Call
- func (_c *Usecase_CreateCategory_Call) Run(run func(e *entities.Category)) *Usecase_CreateCategory_Call
- func (_c *Usecase_CreateCategory_Call) RunAndReturn(run func(*entities.Category) (*entities.Category, error)) *Usecase_CreateCategory_Call
- type Usecase_CreateManufacturer_Call
- func (_c *Usecase_CreateManufacturer_Call) Return(_a0 *entities.Manufacturer, _a1 error) *Usecase_CreateManufacturer_Call
- func (_c *Usecase_CreateManufacturer_Call) Run(run func(e *entities.Manufacturer)) *Usecase_CreateManufacturer_Call
- func (_c *Usecase_CreateManufacturer_Call) RunAndReturn(run func(*entities.Manufacturer) (*entities.Manufacturer, error)) *Usecase_CreateManufacturer_Call
- type Usecase_CreateProduct_Call
- func (_c *Usecase_CreateProduct_Call) Return(_a0 *entities.Product, _a1 error) *Usecase_CreateProduct_Call
- func (_c *Usecase_CreateProduct_Call) Run(run func(e *entities.Product)) *Usecase_CreateProduct_Call
- func (_c *Usecase_CreateProduct_Call) RunAndReturn(run func(*entities.Product) (*entities.Product, error)) *Usecase_CreateProduct_Call
- type Usecase_CreateServiceCategory_Call
- func (_c *Usecase_CreateServiceCategory_Call) Return(_a0 *entities.ServiceCategory, _a1 error) *Usecase_CreateServiceCategory_Call
- func (_c *Usecase_CreateServiceCategory_Call) Run(run func(e *entities.ServiceCategory)) *Usecase_CreateServiceCategory_Call
- func (_c *Usecase_CreateServiceCategory_Call) RunAndReturn(run func(*entities.ServiceCategory) (*entities.ServiceCategory, error)) *Usecase_CreateServiceCategory_Call
- type Usecase_CreateService_Call
- func (_c *Usecase_CreateService_Call) Return(_a0 *entities.Service, _a1 error) *Usecase_CreateService_Call
- func (_c *Usecase_CreateService_Call) Run(run func(e *entities.Service)) *Usecase_CreateService_Call
- func (_c *Usecase_CreateService_Call) RunAndReturn(run func(*entities.Service) (*entities.Service, error)) *Usecase_CreateService_Call
- type Usecase_DeleteCategoryImage_Call
- func (_c *Usecase_DeleteCategoryImage_Call) Return(_a0 error) *Usecase_DeleteCategoryImage_Call
- func (_c *Usecase_DeleteCategoryImage_Call) Run(run func(categoryID entities.ID)) *Usecase_DeleteCategoryImage_Call
- func (_c *Usecase_DeleteCategoryImage_Call) RunAndReturn(run func(entities.ID) error) *Usecase_DeleteCategoryImage_Call
- type Usecase_DeleteCategory_Call
- type Usecase_DeleteManufacturerImage_Call
- func (_c *Usecase_DeleteManufacturerImage_Call) Return(_a0 error) *Usecase_DeleteManufacturerImage_Call
- func (_c *Usecase_DeleteManufacturerImage_Call) Run(run func(manufacturerID entities.ID)) *Usecase_DeleteManufacturerImage_Call
- func (_c *Usecase_DeleteManufacturerImage_Call) RunAndReturn(run func(entities.ID) error) *Usecase_DeleteManufacturerImage_Call
- type Usecase_DeleteManufacturer_Call
- func (_c *Usecase_DeleteManufacturer_Call) Return(_a0 error) *Usecase_DeleteManufacturer_Call
- func (_c *Usecase_DeleteManufacturer_Call) Run(run func(id entities.ID)) *Usecase_DeleteManufacturer_Call
- func (_c *Usecase_DeleteManufacturer_Call) RunAndReturn(run func(entities.ID) error) *Usecase_DeleteManufacturer_Call
- type Usecase_DeleteProductImage_Call
- func (_c *Usecase_DeleteProductImage_Call) Return(_a0 error) *Usecase_DeleteProductImage_Call
- func (_c *Usecase_DeleteProductImage_Call) Run(run func(productID entities.ID, imageID entities.ID)) *Usecase_DeleteProductImage_Call
- func (_c *Usecase_DeleteProductImage_Call) RunAndReturn(run func(entities.ID, entities.ID) error) *Usecase_DeleteProductImage_Call
- type Usecase_DeleteProduct_Call
- type Usecase_DeleteServiceCategory_Call
- func (_c *Usecase_DeleteServiceCategory_Call) Return(_a0 error) *Usecase_DeleteServiceCategory_Call
- func (_c *Usecase_DeleteServiceCategory_Call) Run(run func(id entities.ID)) *Usecase_DeleteServiceCategory_Call
- func (_c *Usecase_DeleteServiceCategory_Call) RunAndReturn(run func(entities.ID) error) *Usecase_DeleteServiceCategory_Call
- type Usecase_DeleteService_Call
- type Usecase_Expecter
- func (_e *Usecase_Expecter) AddProductImages(id interface{}, images interface{}, imageConfigs interface{}) *Usecase_AddProductImages_Call
- func (_e *Usecase_Expecter) CreateCategory(e interface{}) *Usecase_CreateCategory_Call
- func (_e *Usecase_Expecter) CreateManufacturer(e interface{}) *Usecase_CreateManufacturer_Call
- func (_e *Usecase_Expecter) CreateProduct(e interface{}) *Usecase_CreateProduct_Call
- func (_e *Usecase_Expecter) CreateService(e interface{}) *Usecase_CreateService_Call
- func (_e *Usecase_Expecter) CreateServiceCategory(e interface{}) *Usecase_CreateServiceCategory_Call
- func (_e *Usecase_Expecter) DeleteCategory(id interface{}) *Usecase_DeleteCategory_Call
- func (_e *Usecase_Expecter) DeleteCategoryImage(categoryID interface{}) *Usecase_DeleteCategoryImage_Call
- func (_e *Usecase_Expecter) DeleteManufacturer(id interface{}) *Usecase_DeleteManufacturer_Call
- func (_e *Usecase_Expecter) DeleteManufacturerImage(manufacturerID interface{}) *Usecase_DeleteManufacturerImage_Call
- func (_e *Usecase_Expecter) DeleteProduct(id interface{}) *Usecase_DeleteProduct_Call
- func (_e *Usecase_Expecter) DeleteProductImage(productID interface{}, imageID interface{}) *Usecase_DeleteProductImage_Call
- func (_e *Usecase_Expecter) DeleteService(id interface{}) *Usecase_DeleteService_Call
- func (_e *Usecase_Expecter) DeleteServiceCategory(id interface{}) *Usecase_DeleteServiceCategory_Call
- func (_e *Usecase_Expecter) GetCategory(id interface{}, imageConfigs interface{}) *Usecase_GetCategory_Call
- func (_e *Usecase_Expecter) GetManufacturer(id interface{}, imageConfigs interface{}) *Usecase_GetManufacturer_Call
- func (_e *Usecase_Expecter) GetProduct(id interface{}, resolved interface{}, imageConfigs interface{}) *Usecase_GetProduct_Call
- func (_e *Usecase_Expecter) GetService(id interface{}) *Usecase_GetService_Call
- func (_e *Usecase_Expecter) GetServiceCategory(id interface{}, resolved interface{}) *Usecase_GetServiceCategory_Call
- func (_e *Usecase_Expecter) ListCategories(imageConfigs interface{}) *Usecase_ListCategories_Call
- func (_e *Usecase_Expecter) ListManufacturers(imageConfigs interface{}) *Usecase_ListManufacturers_Call
- func (_e *Usecase_Expecter) ListProducts(imageConfigs interface{}) *Usecase_ListProducts_Call
- func (_e *Usecase_Expecter) ListServiceCategories(resolved interface{}) *Usecase_ListServiceCategories_Call
- func (_e *Usecase_Expecter) UpdateCategory(e interface{}) *Usecase_UpdateCategory_Call
- func (_e *Usecase_Expecter) UpdateManufacturer(e interface{}) *Usecase_UpdateManufacturer_Call
- func (_e *Usecase_Expecter) UpdateProduct(e interface{}) *Usecase_UpdateProduct_Call
- func (_e *Usecase_Expecter) UpdateProductImage(productID interface{}, imageID interface{}, order interface{}) *Usecase_UpdateProductImage_Call
- func (_e *Usecase_Expecter) UpdateService(e interface{}) *Usecase_UpdateService_Call
- func (_e *Usecase_Expecter) UpdateServiceCategory(e interface{}) *Usecase_UpdateServiceCategory_Call
- func (_e *Usecase_Expecter) UpsertCategoryImage(categoryID interface{}, imageName interface{}, imageContent interface{}, ...) *Usecase_UpsertCategoryImage_Call
- func (_e *Usecase_Expecter) UpsertManufacturerImage(manufacturerID interface{}, imageName interface{}, imageContent interface{}, ...) *Usecase_UpsertManufacturerImage_Call
- type Usecase_GetCategory_Call
- func (_c *Usecase_GetCategory_Call) Return(_a0 *entities.Category, _a1 error) *Usecase_GetCategory_Call
- func (_c *Usecase_GetCategory_Call) Run(run func(id entities.ID, imageConfigs map[string]imageproxy.ImageConfig)) *Usecase_GetCategory_Call
- func (_c *Usecase_GetCategory_Call) RunAndReturn(...) *Usecase_GetCategory_Call
- type Usecase_GetManufacturer_Call
- func (_c *Usecase_GetManufacturer_Call) Return(_a0 *entities.Manufacturer, _a1 error) *Usecase_GetManufacturer_Call
- func (_c *Usecase_GetManufacturer_Call) Run(run func(id entities.ID, imageConfigs map[string]imageproxy.ImageConfig)) *Usecase_GetManufacturer_Call
- func (_c *Usecase_GetManufacturer_Call) RunAndReturn(...) *Usecase_GetManufacturer_Call
- type Usecase_GetProduct_Call
- type Usecase_GetServiceCategory_Call
- func (_c *Usecase_GetServiceCategory_Call) Return(_a0 *entities.ResolvedServiceCategory, _a1 error) *Usecase_GetServiceCategory_Call
- func (_c *Usecase_GetServiceCategory_Call) Run(run func(id entities.ID, resolved bool)) *Usecase_GetServiceCategory_Call
- func (_c *Usecase_GetServiceCategory_Call) RunAndReturn(run func(entities.ID, bool) (*entities.ResolvedServiceCategory, error)) *Usecase_GetServiceCategory_Call
- type Usecase_GetService_Call
- func (_c *Usecase_GetService_Call) Return(_a0 *entities.Service, _a1 error) *Usecase_GetService_Call
- func (_c *Usecase_GetService_Call) Run(run func(id entities.ID)) *Usecase_GetService_Call
- func (_c *Usecase_GetService_Call) RunAndReturn(run func(entities.ID) (*entities.Service, error)) *Usecase_GetService_Call
- type Usecase_ListCategories_Call
- func (_c *Usecase_ListCategories_Call) Return(_a0 []*entities.Category, _a1 error) *Usecase_ListCategories_Call
- func (_c *Usecase_ListCategories_Call) Run(run func(imageConfigs map[string]imageproxy.ImageConfig)) *Usecase_ListCategories_Call
- func (_c *Usecase_ListCategories_Call) RunAndReturn(run func(map[string]imageproxy.ImageConfig) ([]*entities.Category, error)) *Usecase_ListCategories_Call
- type Usecase_ListManufacturers_Call
- func (_c *Usecase_ListManufacturers_Call) Return(_a0 []*entities.Manufacturer, _a1 error) *Usecase_ListManufacturers_Call
- func (_c *Usecase_ListManufacturers_Call) Run(run func(imageConfigs map[string]imageproxy.ImageConfig)) *Usecase_ListManufacturers_Call
- func (_c *Usecase_ListManufacturers_Call) RunAndReturn(run func(map[string]imageproxy.ImageConfig) ([]*entities.Manufacturer, error)) *Usecase_ListManufacturers_Call
- type Usecase_ListProducts_Call
- func (_c *Usecase_ListProducts_Call) Return(_a0 []*entities.Product, _a1 error) *Usecase_ListProducts_Call
- func (_c *Usecase_ListProducts_Call) Run(run func(imageConfigs map[string]imageproxy.ImageConfig)) *Usecase_ListProducts_Call
- func (_c *Usecase_ListProducts_Call) RunAndReturn(run func(map[string]imageproxy.ImageConfig) ([]*entities.Product, error)) *Usecase_ListProducts_Call
- type Usecase_ListServiceCategories_Call
- func (_c *Usecase_ListServiceCategories_Call) Return(_a0 []*entities.ResolvedServiceCategory, _a1 error) *Usecase_ListServiceCategories_Call
- func (_c *Usecase_ListServiceCategories_Call) Run(run func(resolved bool)) *Usecase_ListServiceCategories_Call
- func (_c *Usecase_ListServiceCategories_Call) RunAndReturn(run func(bool) ([]*entities.ResolvedServiceCategory, error)) *Usecase_ListServiceCategories_Call
- type Usecase_UpdateCategory_Call
- func (_c *Usecase_UpdateCategory_Call) Return(_a0 *entities.Category, _a1 error) *Usecase_UpdateCategory_Call
- func (_c *Usecase_UpdateCategory_Call) Run(run func(e *entities.Category)) *Usecase_UpdateCategory_Call
- func (_c *Usecase_UpdateCategory_Call) RunAndReturn(run func(*entities.Category) (*entities.Category, error)) *Usecase_UpdateCategory_Call
- type Usecase_UpdateManufacturer_Call
- func (_c *Usecase_UpdateManufacturer_Call) Return(_a0 *entities.Manufacturer, _a1 error) *Usecase_UpdateManufacturer_Call
- func (_c *Usecase_UpdateManufacturer_Call) Run(run func(e *entities.Manufacturer)) *Usecase_UpdateManufacturer_Call
- func (_c *Usecase_UpdateManufacturer_Call) RunAndReturn(run func(*entities.Manufacturer) (*entities.Manufacturer, error)) *Usecase_UpdateManufacturer_Call
- type Usecase_UpdateProductImage_Call
- func (_c *Usecase_UpdateProductImage_Call) Return(_a0 []*entities.Image, _a1 error) *Usecase_UpdateProductImage_Call
- func (_c *Usecase_UpdateProductImage_Call) Run(run func(productID entities.ID, imageID entities.ID, order int)) *Usecase_UpdateProductImage_Call
- func (_c *Usecase_UpdateProductImage_Call) RunAndReturn(run func(entities.ID, entities.ID, int) ([]*entities.Image, error)) *Usecase_UpdateProductImage_Call
- type Usecase_UpdateProduct_Call
- func (_c *Usecase_UpdateProduct_Call) Return(_a0 *entities.Product, _a1 error) *Usecase_UpdateProduct_Call
- func (_c *Usecase_UpdateProduct_Call) Run(run func(e *entities.Product)) *Usecase_UpdateProduct_Call
- func (_c *Usecase_UpdateProduct_Call) RunAndReturn(run func(*entities.Product) (*entities.Product, error)) *Usecase_UpdateProduct_Call
- type Usecase_UpdateServiceCategory_Call
- func (_c *Usecase_UpdateServiceCategory_Call) Return(_a0 *entities.ServiceCategory, _a1 error) *Usecase_UpdateServiceCategory_Call
- func (_c *Usecase_UpdateServiceCategory_Call) Run(run func(e *entities.ServiceCategory)) *Usecase_UpdateServiceCategory_Call
- func (_c *Usecase_UpdateServiceCategory_Call) RunAndReturn(run func(*entities.ServiceCategory) (*entities.ServiceCategory, error)) *Usecase_UpdateServiceCategory_Call
- type Usecase_UpdateService_Call
- func (_c *Usecase_UpdateService_Call) Return(_a0 *entities.Service, _a1 error) *Usecase_UpdateService_Call
- func (_c *Usecase_UpdateService_Call) Run(run func(e *entities.Service)) *Usecase_UpdateService_Call
- func (_c *Usecase_UpdateService_Call) RunAndReturn(run func(*entities.Service) (*entities.Service, error)) *Usecase_UpdateService_Call
- type Usecase_UpsertCategoryImage_Call
- func (_c *Usecase_UpsertCategoryImage_Call) Return(_a0 *entities.Category, _a1 error) *Usecase_UpsertCategoryImage_Call
- func (_c *Usecase_UpsertCategoryImage_Call) Run(run func(categoryID entities.ID, imageName string, imageContent []byte, ...)) *Usecase_UpsertCategoryImage_Call
- func (_c *Usecase_UpsertCategoryImage_Call) RunAndReturn(...) *Usecase_UpsertCategoryImage_Call
- type Usecase_UpsertManufacturerImage_Call
- func (_c *Usecase_UpsertManufacturerImage_Call) Return(_a0 *entities.Manufacturer, _a1 error) *Usecase_UpsertManufacturerImage_Call
- func (_c *Usecase_UpsertManufacturerImage_Call) Run(...) *Usecase_UpsertManufacturerImage_Call
- func (_c *Usecase_UpsertManufacturerImage_Call) RunAndReturn(...) *Usecase_UpsertManufacturerImage_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseRepository ¶
DatabaseRepository is an autogenerated mock type for the DatabaseRepository type
func NewDatabaseRepository ¶ added in v0.5.0
func NewDatabaseRepository(t interface { mock.TestingT Cleanup(func()) }) *DatabaseRepository
NewDatabaseRepository creates a new instance of DatabaseRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DatabaseRepository) CreateCategory ¶
CreateCategory provides a mock function with given fields: e
func (*DatabaseRepository) CreateManufacturer ¶
func (_m *DatabaseRepository) CreateManufacturer(e *entities.Manufacturer) (*entities.Manufacturer, error)
CreateManufacturer provides a mock function with given fields: e
func (*DatabaseRepository) CreateProduct ¶
CreateProduct provides a mock function with given fields: e
func (*DatabaseRepository) CreateService ¶ added in v1.1.0
CreateService provides a mock function with given fields: e
func (*DatabaseRepository) CreateServiceCategory ¶ added in v1.1.0
func (_m *DatabaseRepository) CreateServiceCategory(e *entities.ServiceCategory) (*entities.ServiceCategory, error)
CreateServiceCategory provides a mock function with given fields: e
func (*DatabaseRepository) DeleteCategory ¶
func (_m *DatabaseRepository) DeleteCategory(id entities.ID) error
DeleteCategory provides a mock function with given fields: id
func (*DatabaseRepository) DeleteImage ¶
func (_m *DatabaseRepository) DeleteImage(id entities.ID) error
DeleteImage provides a mock function with given fields: id
func (*DatabaseRepository) DeleteManufacturer ¶
func (_m *DatabaseRepository) DeleteManufacturer(id entities.ID) error
DeleteManufacturer provides a mock function with given fields: id
func (*DatabaseRepository) DeleteProduct ¶
func (_m *DatabaseRepository) DeleteProduct(id entities.ID) error
DeleteProduct provides a mock function with given fields: id
func (*DatabaseRepository) DeleteService ¶ added in v1.1.0
func (_m *DatabaseRepository) DeleteService(id entities.ID) error
DeleteService provides a mock function with given fields: id
func (*DatabaseRepository) DeleteServiceCategory ¶ added in v1.1.0
func (_m *DatabaseRepository) DeleteServiceCategory(id entities.ID) error
DeleteServiceCategory provides a mock function with given fields: id
func (*DatabaseRepository) EXPECT ¶ added in v1.1.0
func (_m *DatabaseRepository) EXPECT() *DatabaseRepository_Expecter
func (*DatabaseRepository) GetCategory ¶
GetCategory provides a mock function with given fields: id
func (*DatabaseRepository) GetManufacturer ¶
func (_m *DatabaseRepository) GetManufacturer(id entities.ID) (*entities.Manufacturer, error)
GetManufacturer provides a mock function with given fields: id
func (*DatabaseRepository) GetProduct ¶
GetProduct provides a mock function with given fields: id
func (*DatabaseRepository) GetService ¶ added in v1.1.0
GetService provides a mock function with given fields: id
func (*DatabaseRepository) GetServiceCategory ¶ added in v1.1.0
func (_m *DatabaseRepository) GetServiceCategory(id entities.ID) (*entities.ServiceCategory, error)
GetServiceCategory provides a mock function with given fields: id
func (*DatabaseRepository) ListCategories ¶
func (_m *DatabaseRepository) ListCategories() ([]*entities.Category, error)
ListCategories provides a mock function with given fields:
func (*DatabaseRepository) ListManufacturers ¶
func (_m *DatabaseRepository) ListManufacturers() ([]*entities.Manufacturer, error)
ListManufacturers provides a mock function with given fields:
func (*DatabaseRepository) ListProducts ¶
func (_m *DatabaseRepository) ListProducts() ([]*entities.Product, error)
ListProducts provides a mock function with given fields:
func (*DatabaseRepository) ListServiceCategories ¶ added in v1.1.0
func (_m *DatabaseRepository) ListServiceCategories() ([]*entities.ServiceCategory, error)
ListServiceCategories provides a mock function with given fields:
func (*DatabaseRepository) ListServices ¶ added in v1.1.0
func (_m *DatabaseRepository) ListServices(optionalServiceCategoryID entities.ID) ([]*entities.Service, error)
ListServices provides a mock function with given fields: optionalServiceCategoryID
func (*DatabaseRepository) UpdateCategory ¶
UpdateCategory provides a mock function with given fields: e
func (*DatabaseRepository) UpdateImage ¶
func (_m *DatabaseRepository) UpdateImage(id entities.ID, ownerID entities.ID, newOrder int) ([]*entities.Image, error)
UpdateImage provides a mock function with given fields: id, ownerID, newOrder
func (*DatabaseRepository) UpdateManufacturer ¶
func (_m *DatabaseRepository) UpdateManufacturer(e *entities.Manufacturer) (*entities.Manufacturer, error)
UpdateManufacturer provides a mock function with given fields: e
func (*DatabaseRepository) UpdateProduct ¶
UpdateProduct provides a mock function with given fields: e
func (*DatabaseRepository) UpdateProductImages ¶ added in v0.5.0
func (_m *DatabaseRepository) UpdateProductImages(id entities.ID, images []*entities.Image) ([]*entities.Image, error)
UpdateProductImages provides a mock function with given fields: id, images
func (*DatabaseRepository) UpdateService ¶ added in v1.1.0
UpdateService provides a mock function with given fields: e
func (*DatabaseRepository) UpdateServiceCategory ¶ added in v1.1.0
func (_m *DatabaseRepository) UpdateServiceCategory(e *entities.ServiceCategory) (*entities.ServiceCategory, error)
UpdateServiceCategory provides a mock function with given fields: e
type DatabaseRepository_CreateCategory_Call ¶ added in v1.1.0
DatabaseRepository_CreateCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateCategory'
func (*DatabaseRepository_CreateCategory_Call) Return ¶ added in v1.1.0
func (_c *DatabaseRepository_CreateCategory_Call) Return(_a0 *entities.Category, _a1 error) *DatabaseRepository_CreateCategory_Call
func (*DatabaseRepository_CreateCategory_Call) Run ¶ added in v1.1.0
func (_c *DatabaseRepository_CreateCategory_Call) Run(run func(e *entities.Category)) *DatabaseRepository_CreateCategory_Call
func (*DatabaseRepository_CreateCategory_Call) RunAndReturn ¶ added in v1.1.0
func (_c *DatabaseRepository_CreateCategory_Call) RunAndReturn(run func(*entities.Category) (*entities.Category, error)) *DatabaseRepository_CreateCategory_Call
type DatabaseRepository_CreateManufacturer_Call ¶ added in v1.1.0
DatabaseRepository_CreateManufacturer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateManufacturer'
func (*DatabaseRepository_CreateManufacturer_Call) Return ¶ added in v1.1.0
func (_c *DatabaseRepository_CreateManufacturer_Call) Return(_a0 *entities.Manufacturer, _a1 error) *DatabaseRepository_CreateManufacturer_Call
func (*DatabaseRepository_CreateManufacturer_Call) Run ¶ added in v1.1.0
func (_c *DatabaseRepository_CreateManufacturer_Call) Run(run func(e *entities.Manufacturer)) *DatabaseRepository_CreateManufacturer_Call
func (*DatabaseRepository_CreateManufacturer_Call) RunAndReturn ¶ added in v1.1.0
func (_c *DatabaseRepository_CreateManufacturer_Call) RunAndReturn(run func(*entities.Manufacturer) (*entities.Manufacturer, error)) *DatabaseRepository_CreateManufacturer_Call
type DatabaseRepository_CreateProduct_Call ¶ added in v1.1.0
DatabaseRepository_CreateProduct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateProduct'
func (*DatabaseRepository_CreateProduct_Call) Return ¶ added in v1.1.0
func (_c *DatabaseRepository_CreateProduct_Call) Return(_a0 *entities.Product, _a1 error) *DatabaseRepository_CreateProduct_Call
func (*DatabaseRepository_CreateProduct_Call) Run ¶ added in v1.1.0
func (_c *DatabaseRepository_CreateProduct_Call) Run(run func(e *entities.Product)) *DatabaseRepository_CreateProduct_Call
func (*DatabaseRepository_CreateProduct_Call) RunAndReturn ¶ added in v1.1.0
func (_c *DatabaseRepository_CreateProduct_Call) RunAndReturn(run func(*entities.Product) (*entities.Product, error)) *DatabaseRepository_CreateProduct_Call
type DatabaseRepository_CreateServiceCategory_Call ¶ added in v1.1.0
DatabaseRepository_CreateServiceCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateServiceCategory'
func (*DatabaseRepository_CreateServiceCategory_Call) Return ¶ added in v1.1.0
func (_c *DatabaseRepository_CreateServiceCategory_Call) Return(_a0 *entities.ServiceCategory, _a1 error) *DatabaseRepository_CreateServiceCategory_Call
func (*DatabaseRepository_CreateServiceCategory_Call) Run ¶ added in v1.1.0
func (_c *DatabaseRepository_CreateServiceCategory_Call) Run(run func(e *entities.ServiceCategory)) *DatabaseRepository_CreateServiceCategory_Call
func (*DatabaseRepository_CreateServiceCategory_Call) RunAndReturn ¶ added in v1.1.0
func (_c *DatabaseRepository_CreateServiceCategory_Call) RunAndReturn(run func(*entities.ServiceCategory) (*entities.ServiceCategory, error)) *DatabaseRepository_CreateServiceCategory_Call
type DatabaseRepository_CreateService_Call ¶ added in v1.1.0
DatabaseRepository_CreateService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateService'
func (*DatabaseRepository_CreateService_Call) Return ¶ added in v1.1.0
func (_c *DatabaseRepository_CreateService_Call) Return(_a0 *entities.Service, _a1 error) *DatabaseRepository_CreateService_Call
func (*DatabaseRepository_CreateService_Call) Run ¶ added in v1.1.0
func (_c *DatabaseRepository_CreateService_Call) Run(run func(e *entities.Service)) *DatabaseRepository_CreateService_Call
func (*DatabaseRepository_CreateService_Call) RunAndReturn ¶ added in v1.1.0
func (_c *DatabaseRepository_CreateService_Call) RunAndReturn(run func(*entities.Service) (*entities.Service, error)) *DatabaseRepository_CreateService_Call
type DatabaseRepository_DeleteCategory_Call ¶ added in v1.1.0
DatabaseRepository_DeleteCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteCategory'
func (*DatabaseRepository_DeleteCategory_Call) Return ¶ added in v1.1.0
func (_c *DatabaseRepository_DeleteCategory_Call) Return(_a0 error) *DatabaseRepository_DeleteCategory_Call
func (*DatabaseRepository_DeleteCategory_Call) Run ¶ added in v1.1.0
func (_c *DatabaseRepository_DeleteCategory_Call) Run(run func(id entities.ID)) *DatabaseRepository_DeleteCategory_Call
func (*DatabaseRepository_DeleteCategory_Call) RunAndReturn ¶ added in v1.1.0
func (_c *DatabaseRepository_DeleteCategory_Call) RunAndReturn(run func(entities.ID) error) *DatabaseRepository_DeleteCategory_Call
type DatabaseRepository_DeleteImage_Call ¶ added in v1.1.0
DatabaseRepository_DeleteImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteImage'
func (*DatabaseRepository_DeleteImage_Call) Return ¶ added in v1.1.0
func (_c *DatabaseRepository_DeleteImage_Call) Return(_a0 error) *DatabaseRepository_DeleteImage_Call
func (*DatabaseRepository_DeleteImage_Call) Run ¶ added in v1.1.0
func (_c *DatabaseRepository_DeleteImage_Call) Run(run func(id entities.ID)) *DatabaseRepository_DeleteImage_Call
func (*DatabaseRepository_DeleteImage_Call) RunAndReturn ¶ added in v1.1.0
func (_c *DatabaseRepository_DeleteImage_Call) RunAndReturn(run func(entities.ID) error) *DatabaseRepository_DeleteImage_Call
type DatabaseRepository_DeleteManufacturer_Call ¶ added in v1.1.0
DatabaseRepository_DeleteManufacturer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteManufacturer'
func (*DatabaseRepository_DeleteManufacturer_Call) Return ¶ added in v1.1.0
func (_c *DatabaseRepository_DeleteManufacturer_Call) Return(_a0 error) *DatabaseRepository_DeleteManufacturer_Call
func (*DatabaseRepository_DeleteManufacturer_Call) Run ¶ added in v1.1.0
func (_c *DatabaseRepository_DeleteManufacturer_Call) Run(run func(id entities.ID)) *DatabaseRepository_DeleteManufacturer_Call
func (*DatabaseRepository_DeleteManufacturer_Call) RunAndReturn ¶ added in v1.1.0
func (_c *DatabaseRepository_DeleteManufacturer_Call) RunAndReturn(run func(entities.ID) error) *DatabaseRepository_DeleteManufacturer_Call
type DatabaseRepository_DeleteProduct_Call ¶ added in v1.1.0
DatabaseRepository_DeleteProduct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteProduct'
func (*DatabaseRepository_DeleteProduct_Call) Return ¶ added in v1.1.0
func (_c *DatabaseRepository_DeleteProduct_Call) Return(_a0 error) *DatabaseRepository_DeleteProduct_Call
func (*DatabaseRepository_DeleteProduct_Call) Run ¶ added in v1.1.0
func (_c *DatabaseRepository_DeleteProduct_Call) Run(run func(id entities.ID)) *DatabaseRepository_DeleteProduct_Call
func (*DatabaseRepository_DeleteProduct_Call) RunAndReturn ¶ added in v1.1.0
func (_c *DatabaseRepository_DeleteProduct_Call) RunAndReturn(run func(entities.ID) error) *DatabaseRepository_DeleteProduct_Call
type DatabaseRepository_DeleteServiceCategory_Call ¶ added in v1.1.0
DatabaseRepository_DeleteServiceCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteServiceCategory'
func (*DatabaseRepository_DeleteServiceCategory_Call) Return ¶ added in v1.1.0
func (_c *DatabaseRepository_DeleteServiceCategory_Call) Return(_a0 error) *DatabaseRepository_DeleteServiceCategory_Call
func (*DatabaseRepository_DeleteServiceCategory_Call) Run ¶ added in v1.1.0
func (_c *DatabaseRepository_DeleteServiceCategory_Call) Run(run func(id entities.ID)) *DatabaseRepository_DeleteServiceCategory_Call
func (*DatabaseRepository_DeleteServiceCategory_Call) RunAndReturn ¶ added in v1.1.0
func (_c *DatabaseRepository_DeleteServiceCategory_Call) RunAndReturn(run func(entities.ID) error) *DatabaseRepository_DeleteServiceCategory_Call
type DatabaseRepository_DeleteService_Call ¶ added in v1.1.0
DatabaseRepository_DeleteService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteService'
func (*DatabaseRepository_DeleteService_Call) Return ¶ added in v1.1.0
func (_c *DatabaseRepository_DeleteService_Call) Return(_a0 error) *DatabaseRepository_DeleteService_Call
func (*DatabaseRepository_DeleteService_Call) Run ¶ added in v1.1.0
func (_c *DatabaseRepository_DeleteService_Call) Run(run func(id entities.ID)) *DatabaseRepository_DeleteService_Call
func (*DatabaseRepository_DeleteService_Call) RunAndReturn ¶ added in v1.1.0
func (_c *DatabaseRepository_DeleteService_Call) RunAndReturn(run func(entities.ID) error) *DatabaseRepository_DeleteService_Call
type DatabaseRepository_Expecter ¶ added in v1.1.0
type DatabaseRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*DatabaseRepository_Expecter) CreateCategory ¶ added in v1.1.0
func (_e *DatabaseRepository_Expecter) CreateCategory(e interface{}) *DatabaseRepository_CreateCategory_Call
CreateCategory is a helper method to define mock.On call
- e *entities.Category
func (*DatabaseRepository_Expecter) CreateManufacturer ¶ added in v1.1.0
func (_e *DatabaseRepository_Expecter) CreateManufacturer(e interface{}) *DatabaseRepository_CreateManufacturer_Call
CreateManufacturer is a helper method to define mock.On call
- e *entities.Manufacturer
func (*DatabaseRepository_Expecter) CreateProduct ¶ added in v1.1.0
func (_e *DatabaseRepository_Expecter) CreateProduct(e interface{}) *DatabaseRepository_CreateProduct_Call
CreateProduct is a helper method to define mock.On call
- e *entities.Product
func (*DatabaseRepository_Expecter) CreateService ¶ added in v1.1.0
func (_e *DatabaseRepository_Expecter) CreateService(e interface{}) *DatabaseRepository_CreateService_Call
CreateService is a helper method to define mock.On call
- e *entities.Service
func (*DatabaseRepository_Expecter) CreateServiceCategory ¶ added in v1.1.0
func (_e *DatabaseRepository_Expecter) CreateServiceCategory(e interface{}) *DatabaseRepository_CreateServiceCategory_Call
CreateServiceCategory is a helper method to define mock.On call
- e *entities.ServiceCategory
func (*DatabaseRepository_Expecter) DeleteCategory ¶ added in v1.1.0
func (_e *DatabaseRepository_Expecter) DeleteCategory(id interface{}) *DatabaseRepository_DeleteCategory_Call
DeleteCategory is a helper method to define mock.On call
- id entities.ID
func (*DatabaseRepository_Expecter) DeleteImage ¶ added in v1.1.0
func (_e *DatabaseRepository_Expecter) DeleteImage(id interface{}) *DatabaseRepository_DeleteImage_Call
DeleteImage is a helper method to define mock.On call
- id entities.ID
func (*DatabaseRepository_Expecter) DeleteManufacturer ¶ added in v1.1.0
func (_e *DatabaseRepository_Expecter) DeleteManufacturer(id interface{}) *DatabaseRepository_DeleteManufacturer_Call
DeleteManufacturer is a helper method to define mock.On call
- id entities.ID
func (*DatabaseRepository_Expecter) DeleteProduct ¶ added in v1.1.0
func (_e *DatabaseRepository_Expecter) DeleteProduct(id interface{}) *DatabaseRepository_DeleteProduct_Call
DeleteProduct is a helper method to define mock.On call
- id entities.ID
func (*DatabaseRepository_Expecter) DeleteService ¶ added in v1.1.0
func (_e *DatabaseRepository_Expecter) DeleteService(id interface{}) *DatabaseRepository_DeleteService_Call
DeleteService is a helper method to define mock.On call
- id entities.ID
func (*DatabaseRepository_Expecter) DeleteServiceCategory ¶ added in v1.1.0
func (_e *DatabaseRepository_Expecter) DeleteServiceCategory(id interface{}) *DatabaseRepository_DeleteServiceCategory_Call
DeleteServiceCategory is a helper method to define mock.On call
- id entities.ID
func (*DatabaseRepository_Expecter) GetCategory ¶ added in v1.1.0
func (_e *DatabaseRepository_Expecter) GetCategory(id interface{}) *DatabaseRepository_GetCategory_Call
GetCategory is a helper method to define mock.On call
- id entities.ID
func (*DatabaseRepository_Expecter) GetImage ¶ added in v1.1.0
func (_e *DatabaseRepository_Expecter) GetImage(id interface{}) *DatabaseRepository_GetImage_Call
GetImage is a helper method to define mock.On call
- id entities.ID
func (*DatabaseRepository_Expecter) GetManufacturer ¶ added in v1.1.0
func (_e *DatabaseRepository_Expecter) GetManufacturer(id interface{}) *DatabaseRepository_GetManufacturer_Call
GetManufacturer is a helper method to define mock.On call
- id entities.ID
func (*DatabaseRepository_Expecter) GetProduct ¶ added in v1.1.0
func (_e *DatabaseRepository_Expecter) GetProduct(id interface{}) *DatabaseRepository_GetProduct_Call
GetProduct is a helper method to define mock.On call
- id entities.ID
func (*DatabaseRepository_Expecter) GetService ¶ added in v1.1.0
func (_e *DatabaseRepository_Expecter) GetService(id interface{}) *DatabaseRepository_GetService_Call
GetService is a helper method to define mock.On call
- id entities.ID
func (*DatabaseRepository_Expecter) GetServiceCategory ¶ added in v1.1.0
func (_e *DatabaseRepository_Expecter) GetServiceCategory(id interface{}) *DatabaseRepository_GetServiceCategory_Call
GetServiceCategory is a helper method to define mock.On call
- id entities.ID
func (*DatabaseRepository_Expecter) ListCategories ¶ added in v1.1.0
func (_e *DatabaseRepository_Expecter) ListCategories() *DatabaseRepository_ListCategories_Call
ListCategories is a helper method to define mock.On call
func (*DatabaseRepository_Expecter) ListManufacturers ¶ added in v1.1.0
func (_e *DatabaseRepository_Expecter) ListManufacturers() *DatabaseRepository_ListManufacturers_Call
ListManufacturers is a helper method to define mock.On call
func (*DatabaseRepository_Expecter) ListProducts ¶ added in v1.1.0
func (_e *DatabaseRepository_Expecter) ListProducts() *DatabaseRepository_ListProducts_Call
ListProducts is a helper method to define mock.On call
func (*DatabaseRepository_Expecter) ListServiceCategories ¶ added in v1.1.0
func (_e *DatabaseRepository_Expecter) ListServiceCategories() *DatabaseRepository_ListServiceCategories_Call
ListServiceCategories is a helper method to define mock.On call
func (*DatabaseRepository_Expecter) ListServices ¶ added in v1.1.0
func (_e *DatabaseRepository_Expecter) ListServices(optionalServiceCategoryID interface{}) *DatabaseRepository_ListServices_Call
ListServices is a helper method to define mock.On call
- optionalServiceCategoryID entities.ID
func (*DatabaseRepository_Expecter) UpdateCategory ¶ added in v1.1.0
func (_e *DatabaseRepository_Expecter) UpdateCategory(e interface{}) *DatabaseRepository_UpdateCategory_Call
UpdateCategory is a helper method to define mock.On call
- e *entities.Category
func (*DatabaseRepository_Expecter) UpdateImage ¶ added in v1.1.0
func (_e *DatabaseRepository_Expecter) UpdateImage(id interface{}, ownerID interface{}, newOrder interface{}) *DatabaseRepository_UpdateImage_Call
UpdateImage is a helper method to define mock.On call
- id entities.ID
- ownerID entities.ID
- newOrder int
func (*DatabaseRepository_Expecter) UpdateManufacturer ¶ added in v1.1.0
func (_e *DatabaseRepository_Expecter) UpdateManufacturer(e interface{}) *DatabaseRepository_UpdateManufacturer_Call
UpdateManufacturer is a helper method to define mock.On call
- e *entities.Manufacturer
func (*DatabaseRepository_Expecter) UpdateProduct ¶ added in v1.1.0
func (_e *DatabaseRepository_Expecter) UpdateProduct(e interface{}) *DatabaseRepository_UpdateProduct_Call
UpdateProduct is a helper method to define mock.On call
- e *entities.Product
func (*DatabaseRepository_Expecter) UpdateProductImages ¶ added in v1.1.0
func (_e *DatabaseRepository_Expecter) UpdateProductImages(id interface{}, images interface{}) *DatabaseRepository_UpdateProductImages_Call
UpdateProductImages is a helper method to define mock.On call
- id entities.ID
- images []*entities.Image
func (*DatabaseRepository_Expecter) UpdateService ¶ added in v1.1.0
func (_e *DatabaseRepository_Expecter) UpdateService(e interface{}) *DatabaseRepository_UpdateService_Call
UpdateService is a helper method to define mock.On call
- e *entities.Service
func (*DatabaseRepository_Expecter) UpdateServiceCategory ¶ added in v1.1.0
func (_e *DatabaseRepository_Expecter) UpdateServiceCategory(e interface{}) *DatabaseRepository_UpdateServiceCategory_Call
UpdateServiceCategory is a helper method to define mock.On call
- e *entities.ServiceCategory
type DatabaseRepository_GetCategory_Call ¶ added in v1.1.0
DatabaseRepository_GetCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCategory'
func (*DatabaseRepository_GetCategory_Call) Return ¶ added in v1.1.0
func (_c *DatabaseRepository_GetCategory_Call) Return(_a0 *entities.Category, _a1 error) *DatabaseRepository_GetCategory_Call
func (*DatabaseRepository_GetCategory_Call) Run ¶ added in v1.1.0
func (_c *DatabaseRepository_GetCategory_Call) Run(run func(id entities.ID)) *DatabaseRepository_GetCategory_Call
func (*DatabaseRepository_GetCategory_Call) RunAndReturn ¶ added in v1.1.0
func (_c *DatabaseRepository_GetCategory_Call) RunAndReturn(run func(entities.ID) (*entities.Category, error)) *DatabaseRepository_GetCategory_Call
type DatabaseRepository_GetImage_Call ¶ added in v1.1.0
DatabaseRepository_GetImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetImage'
func (*DatabaseRepository_GetImage_Call) Return ¶ added in v1.1.0
func (_c *DatabaseRepository_GetImage_Call) Return(_a0 *entities.Image, _a1 error) *DatabaseRepository_GetImage_Call
func (*DatabaseRepository_GetImage_Call) Run ¶ added in v1.1.0
func (_c *DatabaseRepository_GetImage_Call) Run(run func(id entities.ID)) *DatabaseRepository_GetImage_Call
func (*DatabaseRepository_GetImage_Call) RunAndReturn ¶ added in v1.1.0
func (_c *DatabaseRepository_GetImage_Call) RunAndReturn(run func(entities.ID) (*entities.Image, error)) *DatabaseRepository_GetImage_Call
type DatabaseRepository_GetManufacturer_Call ¶ added in v1.1.0
DatabaseRepository_GetManufacturer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetManufacturer'
func (*DatabaseRepository_GetManufacturer_Call) Return ¶ added in v1.1.0
func (_c *DatabaseRepository_GetManufacturer_Call) Return(_a0 *entities.Manufacturer, _a1 error) *DatabaseRepository_GetManufacturer_Call
func (*DatabaseRepository_GetManufacturer_Call) Run ¶ added in v1.1.0
func (_c *DatabaseRepository_GetManufacturer_Call) Run(run func(id entities.ID)) *DatabaseRepository_GetManufacturer_Call
func (*DatabaseRepository_GetManufacturer_Call) RunAndReturn ¶ added in v1.1.0
func (_c *DatabaseRepository_GetManufacturer_Call) RunAndReturn(run func(entities.ID) (*entities.Manufacturer, error)) *DatabaseRepository_GetManufacturer_Call
type DatabaseRepository_GetProduct_Call ¶ added in v1.1.0
DatabaseRepository_GetProduct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProduct'
func (*DatabaseRepository_GetProduct_Call) Return ¶ added in v1.1.0
func (_c *DatabaseRepository_GetProduct_Call) Return(_a0 *entities.Product, _a1 error) *DatabaseRepository_GetProduct_Call
func (*DatabaseRepository_GetProduct_Call) Run ¶ added in v1.1.0
func (_c *DatabaseRepository_GetProduct_Call) Run(run func(id entities.ID)) *DatabaseRepository_GetProduct_Call
func (*DatabaseRepository_GetProduct_Call) RunAndReturn ¶ added in v1.1.0
func (_c *DatabaseRepository_GetProduct_Call) RunAndReturn(run func(entities.ID) (*entities.Product, error)) *DatabaseRepository_GetProduct_Call
type DatabaseRepository_GetServiceCategory_Call ¶ added in v1.1.0
DatabaseRepository_GetServiceCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetServiceCategory'
func (*DatabaseRepository_GetServiceCategory_Call) Return ¶ added in v1.1.0
func (_c *DatabaseRepository_GetServiceCategory_Call) Return(_a0 *entities.ServiceCategory, _a1 error) *DatabaseRepository_GetServiceCategory_Call
func (*DatabaseRepository_GetServiceCategory_Call) Run ¶ added in v1.1.0
func (_c *DatabaseRepository_GetServiceCategory_Call) Run(run func(id entities.ID)) *DatabaseRepository_GetServiceCategory_Call
func (*DatabaseRepository_GetServiceCategory_Call) RunAndReturn ¶ added in v1.1.0
func (_c *DatabaseRepository_GetServiceCategory_Call) RunAndReturn(run func(entities.ID) (*entities.ServiceCategory, error)) *DatabaseRepository_GetServiceCategory_Call
type DatabaseRepository_GetService_Call ¶ added in v1.1.0
DatabaseRepository_GetService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetService'
func (*DatabaseRepository_GetService_Call) Return ¶ added in v1.1.0
func (_c *DatabaseRepository_GetService_Call) Return(_a0 *entities.Service, _a1 error) *DatabaseRepository_GetService_Call
func (*DatabaseRepository_GetService_Call) Run ¶ added in v1.1.0
func (_c *DatabaseRepository_GetService_Call) Run(run func(id entities.ID)) *DatabaseRepository_GetService_Call
func (*DatabaseRepository_GetService_Call) RunAndReturn ¶ added in v1.1.0
func (_c *DatabaseRepository_GetService_Call) RunAndReturn(run func(entities.ID) (*entities.Service, error)) *DatabaseRepository_GetService_Call
type DatabaseRepository_ListCategories_Call ¶ added in v1.1.0
DatabaseRepository_ListCategories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListCategories'
func (*DatabaseRepository_ListCategories_Call) Return ¶ added in v1.1.0
func (_c *DatabaseRepository_ListCategories_Call) Return(_a0 []*entities.Category, _a1 error) *DatabaseRepository_ListCategories_Call
func (*DatabaseRepository_ListCategories_Call) Run ¶ added in v1.1.0
func (_c *DatabaseRepository_ListCategories_Call) Run(run func()) *DatabaseRepository_ListCategories_Call
func (*DatabaseRepository_ListCategories_Call) RunAndReturn ¶ added in v1.1.0
func (_c *DatabaseRepository_ListCategories_Call) RunAndReturn(run func() ([]*entities.Category, error)) *DatabaseRepository_ListCategories_Call
type DatabaseRepository_ListManufacturers_Call ¶ added in v1.1.0
DatabaseRepository_ListManufacturers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListManufacturers'
func (*DatabaseRepository_ListManufacturers_Call) Return ¶ added in v1.1.0
func (_c *DatabaseRepository_ListManufacturers_Call) Return(_a0 []*entities.Manufacturer, _a1 error) *DatabaseRepository_ListManufacturers_Call
func (*DatabaseRepository_ListManufacturers_Call) Run ¶ added in v1.1.0
func (_c *DatabaseRepository_ListManufacturers_Call) Run(run func()) *DatabaseRepository_ListManufacturers_Call
func (*DatabaseRepository_ListManufacturers_Call) RunAndReturn ¶ added in v1.1.0
func (_c *DatabaseRepository_ListManufacturers_Call) RunAndReturn(run func() ([]*entities.Manufacturer, error)) *DatabaseRepository_ListManufacturers_Call
type DatabaseRepository_ListProducts_Call ¶ added in v1.1.0
DatabaseRepository_ListProducts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListProducts'
func (*DatabaseRepository_ListProducts_Call) Return ¶ added in v1.1.0
func (_c *DatabaseRepository_ListProducts_Call) Return(_a0 []*entities.Product, _a1 error) *DatabaseRepository_ListProducts_Call
func (*DatabaseRepository_ListProducts_Call) Run ¶ added in v1.1.0
func (_c *DatabaseRepository_ListProducts_Call) Run(run func()) *DatabaseRepository_ListProducts_Call
func (*DatabaseRepository_ListProducts_Call) RunAndReturn ¶ added in v1.1.0
func (_c *DatabaseRepository_ListProducts_Call) RunAndReturn(run func() ([]*entities.Product, error)) *DatabaseRepository_ListProducts_Call
type DatabaseRepository_ListServiceCategories_Call ¶ added in v1.1.0
DatabaseRepository_ListServiceCategories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListServiceCategories'
func (*DatabaseRepository_ListServiceCategories_Call) Return ¶ added in v1.1.0
func (_c *DatabaseRepository_ListServiceCategories_Call) Return(_a0 []*entities.ServiceCategory, _a1 error) *DatabaseRepository_ListServiceCategories_Call
func (*DatabaseRepository_ListServiceCategories_Call) Run ¶ added in v1.1.0
func (_c *DatabaseRepository_ListServiceCategories_Call) Run(run func()) *DatabaseRepository_ListServiceCategories_Call
func (*DatabaseRepository_ListServiceCategories_Call) RunAndReturn ¶ added in v1.1.0
func (_c *DatabaseRepository_ListServiceCategories_Call) RunAndReturn(run func() ([]*entities.ServiceCategory, error)) *DatabaseRepository_ListServiceCategories_Call
type DatabaseRepository_ListServices_Call ¶ added in v1.1.0
DatabaseRepository_ListServices_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListServices'
func (*DatabaseRepository_ListServices_Call) Return ¶ added in v1.1.0
func (_c *DatabaseRepository_ListServices_Call) Return(_a0 []*entities.Service, _a1 error) *DatabaseRepository_ListServices_Call
func (*DatabaseRepository_ListServices_Call) Run ¶ added in v1.1.0
func (_c *DatabaseRepository_ListServices_Call) Run(run func(optionalServiceCategoryID entities.ID)) *DatabaseRepository_ListServices_Call
func (*DatabaseRepository_ListServices_Call) RunAndReturn ¶ added in v1.1.0
func (_c *DatabaseRepository_ListServices_Call) RunAndReturn(run func(entities.ID) ([]*entities.Service, error)) *DatabaseRepository_ListServices_Call
type DatabaseRepository_UpdateCategory_Call ¶ added in v1.1.0
DatabaseRepository_UpdateCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateCategory'
func (*DatabaseRepository_UpdateCategory_Call) Return ¶ added in v1.1.0
func (_c *DatabaseRepository_UpdateCategory_Call) Return(_a0 *entities.Category, _a1 error) *DatabaseRepository_UpdateCategory_Call
func (*DatabaseRepository_UpdateCategory_Call) Run ¶ added in v1.1.0
func (_c *DatabaseRepository_UpdateCategory_Call) Run(run func(e *entities.Category)) *DatabaseRepository_UpdateCategory_Call
func (*DatabaseRepository_UpdateCategory_Call) RunAndReturn ¶ added in v1.1.0
func (_c *DatabaseRepository_UpdateCategory_Call) RunAndReturn(run func(*entities.Category) (*entities.Category, error)) *DatabaseRepository_UpdateCategory_Call
type DatabaseRepository_UpdateImage_Call ¶ added in v1.1.0
DatabaseRepository_UpdateImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateImage'
func (*DatabaseRepository_UpdateImage_Call) Return ¶ added in v1.1.0
func (_c *DatabaseRepository_UpdateImage_Call) Return(_a0 []*entities.Image, _a1 error) *DatabaseRepository_UpdateImage_Call
func (*DatabaseRepository_UpdateImage_Call) Run ¶ added in v1.1.0
func (_c *DatabaseRepository_UpdateImage_Call) Run(run func(id entities.ID, ownerID entities.ID, newOrder int)) *DatabaseRepository_UpdateImage_Call
func (*DatabaseRepository_UpdateImage_Call) RunAndReturn ¶ added in v1.1.0
func (_c *DatabaseRepository_UpdateImage_Call) RunAndReturn(run func(entities.ID, entities.ID, int) ([]*entities.Image, error)) *DatabaseRepository_UpdateImage_Call
type DatabaseRepository_UpdateManufacturer_Call ¶ added in v1.1.0
DatabaseRepository_UpdateManufacturer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateManufacturer'
func (*DatabaseRepository_UpdateManufacturer_Call) Return ¶ added in v1.1.0
func (_c *DatabaseRepository_UpdateManufacturer_Call) Return(_a0 *entities.Manufacturer, _a1 error) *DatabaseRepository_UpdateManufacturer_Call
func (*DatabaseRepository_UpdateManufacturer_Call) Run ¶ added in v1.1.0
func (_c *DatabaseRepository_UpdateManufacturer_Call) Run(run func(e *entities.Manufacturer)) *DatabaseRepository_UpdateManufacturer_Call
func (*DatabaseRepository_UpdateManufacturer_Call) RunAndReturn ¶ added in v1.1.0
func (_c *DatabaseRepository_UpdateManufacturer_Call) RunAndReturn(run func(*entities.Manufacturer) (*entities.Manufacturer, error)) *DatabaseRepository_UpdateManufacturer_Call
type DatabaseRepository_UpdateProductImages_Call ¶ added in v1.1.0
DatabaseRepository_UpdateProductImages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateProductImages'
func (*DatabaseRepository_UpdateProductImages_Call) Return ¶ added in v1.1.0
func (_c *DatabaseRepository_UpdateProductImages_Call) Return(_a0 []*entities.Image, _a1 error) *DatabaseRepository_UpdateProductImages_Call
func (*DatabaseRepository_UpdateProductImages_Call) Run ¶ added in v1.1.0
func (_c *DatabaseRepository_UpdateProductImages_Call) Run(run func(id entities.ID, images []*entities.Image)) *DatabaseRepository_UpdateProductImages_Call
func (*DatabaseRepository_UpdateProductImages_Call) RunAndReturn ¶ added in v1.1.0
func (_c *DatabaseRepository_UpdateProductImages_Call) RunAndReturn(run func(entities.ID, []*entities.Image) ([]*entities.Image, error)) *DatabaseRepository_UpdateProductImages_Call
type DatabaseRepository_UpdateProduct_Call ¶ added in v1.1.0
DatabaseRepository_UpdateProduct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateProduct'
func (*DatabaseRepository_UpdateProduct_Call) Return ¶ added in v1.1.0
func (_c *DatabaseRepository_UpdateProduct_Call) Return(_a0 *entities.Product, _a1 error) *DatabaseRepository_UpdateProduct_Call
func (*DatabaseRepository_UpdateProduct_Call) Run ¶ added in v1.1.0
func (_c *DatabaseRepository_UpdateProduct_Call) Run(run func(e *entities.Product)) *DatabaseRepository_UpdateProduct_Call
func (*DatabaseRepository_UpdateProduct_Call) RunAndReturn ¶ added in v1.1.0
func (_c *DatabaseRepository_UpdateProduct_Call) RunAndReturn(run func(*entities.Product) (*entities.Product, error)) *DatabaseRepository_UpdateProduct_Call
type DatabaseRepository_UpdateServiceCategory_Call ¶ added in v1.1.0
DatabaseRepository_UpdateServiceCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateServiceCategory'
func (*DatabaseRepository_UpdateServiceCategory_Call) Return ¶ added in v1.1.0
func (_c *DatabaseRepository_UpdateServiceCategory_Call) Return(_a0 *entities.ServiceCategory, _a1 error) *DatabaseRepository_UpdateServiceCategory_Call
func (*DatabaseRepository_UpdateServiceCategory_Call) Run ¶ added in v1.1.0
func (_c *DatabaseRepository_UpdateServiceCategory_Call) Run(run func(e *entities.ServiceCategory)) *DatabaseRepository_UpdateServiceCategory_Call
func (*DatabaseRepository_UpdateServiceCategory_Call) RunAndReturn ¶ added in v1.1.0
func (_c *DatabaseRepository_UpdateServiceCategory_Call) RunAndReturn(run func(*entities.ServiceCategory) (*entities.ServiceCategory, error)) *DatabaseRepository_UpdateServiceCategory_Call
type DatabaseRepository_UpdateService_Call ¶ added in v1.1.0
DatabaseRepository_UpdateService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateService'
func (*DatabaseRepository_UpdateService_Call) Return ¶ added in v1.1.0
func (_c *DatabaseRepository_UpdateService_Call) Return(_a0 *entities.Service, _a1 error) *DatabaseRepository_UpdateService_Call
func (*DatabaseRepository_UpdateService_Call) Run ¶ added in v1.1.0
func (_c *DatabaseRepository_UpdateService_Call) Run(run func(e *entities.Service)) *DatabaseRepository_UpdateService_Call
func (*DatabaseRepository_UpdateService_Call) RunAndReturn ¶ added in v1.1.0
func (_c *DatabaseRepository_UpdateService_Call) RunAndReturn(run func(*entities.Service) (*entities.Service, error)) *DatabaseRepository_UpdateService_Call
type StorageRepository ¶
StorageRepository is an autogenerated mock type for the StorageRepository type
func NewStorageRepository ¶ added in v0.5.0
func NewStorageRepository(t interface { mock.TestingT Cleanup(func()) }) *StorageRepository
NewStorageRepository creates a new instance of StorageRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*StorageRepository) DeleteFile ¶
func (_m *StorageRepository) DeleteFile(filename string) error
DeleteFile provides a mock function with given fields: filename
func (*StorageRepository) EXPECT ¶ added in v1.1.0
func (_m *StorageRepository) EXPECT() *StorageRepository_Expecter
type StorageRepository_DeleteFile_Call ¶ added in v1.1.0
StorageRepository_DeleteFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteFile'
func (*StorageRepository_DeleteFile_Call) Return ¶ added in v1.1.0
func (_c *StorageRepository_DeleteFile_Call) Return(_a0 error) *StorageRepository_DeleteFile_Call
func (*StorageRepository_DeleteFile_Call) Run ¶ added in v1.1.0
func (_c *StorageRepository_DeleteFile_Call) Run(run func(filename string)) *StorageRepository_DeleteFile_Call
func (*StorageRepository_DeleteFile_Call) RunAndReturn ¶ added in v1.1.0
func (_c *StorageRepository_DeleteFile_Call) RunAndReturn(run func(string) error) *StorageRepository_DeleteFile_Call
type StorageRepository_Expecter ¶ added in v1.1.0
type StorageRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*StorageRepository_Expecter) DeleteFile ¶ added in v1.1.0
func (_e *StorageRepository_Expecter) DeleteFile(filename interface{}) *StorageRepository_DeleteFile_Call
DeleteFile is a helper method to define mock.On call
- filename string
func (*StorageRepository_Expecter) SaveFile ¶ added in v1.1.0
func (_e *StorageRepository_Expecter) SaveFile(filename interface{}, content interface{}) *StorageRepository_SaveFile_Call
SaveFile is a helper method to define mock.On call
- filename string
- content []byte
type StorageRepository_SaveFile_Call ¶ added in v1.1.0
StorageRepository_SaveFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveFile'
func (*StorageRepository_SaveFile_Call) Return ¶ added in v1.1.0
func (_c *StorageRepository_SaveFile_Call) Return(_a0 error) *StorageRepository_SaveFile_Call
func (*StorageRepository_SaveFile_Call) Run ¶ added in v1.1.0
func (_c *StorageRepository_SaveFile_Call) Run(run func(filename string, content []byte)) *StorageRepository_SaveFile_Call
func (*StorageRepository_SaveFile_Call) RunAndReturn ¶ added in v1.1.0
func (_c *StorageRepository_SaveFile_Call) RunAndReturn(run func(string, []byte) error) *StorageRepository_SaveFile_Call
type Usecase ¶
Usecase is an autogenerated mock type for the Usecase type
func NewUsecase ¶ added in v0.5.0
NewUsecase creates a new instance of Usecase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Usecase) AddProductImages ¶
func (_m *Usecase) AddProductImages(id entities.ID, images map[string][]byte, imageConfigs map[string]imageproxy.ImageConfig) (*entities.Product, error)
AddProductImages provides a mock function with given fields: id, images, imageConfigs
func (*Usecase) CreateCategory ¶
CreateCategory provides a mock function with given fields: e
func (*Usecase) CreateManufacturer ¶
func (_m *Usecase) CreateManufacturer(e *entities.Manufacturer) (*entities.Manufacturer, error)
CreateManufacturer provides a mock function with given fields: e
func (*Usecase) CreateProduct ¶
CreateProduct provides a mock function with given fields: e
func (*Usecase) CreateService ¶ added in v1.1.0
CreateService provides a mock function with given fields: e
func (*Usecase) CreateServiceCategory ¶ added in v1.1.0
func (_m *Usecase) CreateServiceCategory(e *entities.ServiceCategory) (*entities.ServiceCategory, error)
CreateServiceCategory provides a mock function with given fields: e
func (*Usecase) DeleteCategory ¶
DeleteCategory provides a mock function with given fields: id
func (*Usecase) DeleteCategoryImage ¶
DeleteCategoryImage provides a mock function with given fields: categoryID
func (*Usecase) DeleteManufacturer ¶
DeleteManufacturer provides a mock function with given fields: id
func (*Usecase) DeleteManufacturerImage ¶
DeleteManufacturerImage provides a mock function with given fields: manufacturerID
func (*Usecase) DeleteProduct ¶
DeleteProduct provides a mock function with given fields: id
func (*Usecase) DeleteProductImage ¶
DeleteProductImage provides a mock function with given fields: productID, imageID
func (*Usecase) DeleteService ¶ added in v1.1.0
DeleteService provides a mock function with given fields: id
func (*Usecase) DeleteServiceCategory ¶ added in v1.1.0
DeleteServiceCategory provides a mock function with given fields: id
func (*Usecase) EXPECT ¶ added in v1.1.0
func (_m *Usecase) EXPECT() *Usecase_Expecter
func (*Usecase) GetCategory ¶
func (_m *Usecase) GetCategory(id entities.ID, imageConfigs map[string]imageproxy.ImageConfig) (*entities.Category, error)
GetCategory provides a mock function with given fields: id, imageConfigs
func (*Usecase) GetManufacturer ¶
func (_m *Usecase) GetManufacturer(id entities.ID, imageConfigs map[string]imageproxy.ImageConfig) (*entities.Manufacturer, error)
GetManufacturer provides a mock function with given fields: id, imageConfigs
func (*Usecase) GetProduct ¶
func (_m *Usecase) GetProduct(id entities.ID, resolved bool, imageConfigs map[string]imageproxy.ImageConfig) (*entities.ResolvedProduct, error)
GetProduct provides a mock function with given fields: id, resolved, imageConfigs
func (*Usecase) GetService ¶ added in v1.1.0
GetService provides a mock function with given fields: id
func (*Usecase) GetServiceCategory ¶ added in v1.1.0
func (_m *Usecase) GetServiceCategory(id entities.ID, resolved bool) (*entities.ResolvedServiceCategory, error)
GetServiceCategory provides a mock function with given fields: id, resolved
func (*Usecase) ListCategories ¶
func (_m *Usecase) ListCategories(imageConfigs map[string]imageproxy.ImageConfig) ([]*entities.Category, error)
ListCategories provides a mock function with given fields: imageConfigs
func (*Usecase) ListManufacturers ¶
func (_m *Usecase) ListManufacturers(imageConfigs map[string]imageproxy.ImageConfig) ([]*entities.Manufacturer, error)
ListManufacturers provides a mock function with given fields: imageConfigs
func (*Usecase) ListProducts ¶
func (_m *Usecase) ListProducts(imageConfigs map[string]imageproxy.ImageConfig) ([]*entities.Product, error)
ListProducts provides a mock function with given fields: imageConfigs
func (*Usecase) ListServiceCategories ¶ added in v1.1.0
func (_m *Usecase) ListServiceCategories(resolved bool) ([]*entities.ResolvedServiceCategory, error)
ListServiceCategories provides a mock function with given fields: resolved
func (*Usecase) UpdateCategory ¶
UpdateCategory provides a mock function with given fields: e
func (*Usecase) UpdateManufacturer ¶
func (_m *Usecase) UpdateManufacturer(e *entities.Manufacturer) (*entities.Manufacturer, error)
UpdateManufacturer provides a mock function with given fields: e
func (*Usecase) UpdateProduct ¶
UpdateProduct provides a mock function with given fields: e
func (*Usecase) UpdateProductImage ¶
func (_m *Usecase) UpdateProductImage(productID entities.ID, imageID entities.ID, order int) ([]*entities.Image, error)
UpdateProductImage provides a mock function with given fields: productID, imageID, order
func (*Usecase) UpdateService ¶ added in v1.1.0
UpdateService provides a mock function with given fields: e
func (*Usecase) UpdateServiceCategory ¶ added in v1.1.0
func (_m *Usecase) UpdateServiceCategory(e *entities.ServiceCategory) (*entities.ServiceCategory, error)
UpdateServiceCategory provides a mock function with given fields: e
func (*Usecase) UpsertCategoryImage ¶
func (_m *Usecase) UpsertCategoryImage(categoryID entities.ID, imageName string, imageContent []byte, imageConfigs map[string]imageproxy.ImageConfig) (*entities.Category, error)
UpsertCategoryImage provides a mock function with given fields: categoryID, imageName, imageContent, imageConfigs
func (*Usecase) UpsertManufacturerImage ¶
func (_m *Usecase) UpsertManufacturerImage(manufacturerID entities.ID, imageName string, imageContent []byte, imageConfigs map[string]imageproxy.ImageConfig) (*entities.Manufacturer, error)
UpsertManufacturerImage provides a mock function with given fields: manufacturerID, imageName, imageContent, imageConfigs
type Usecase_AddProductImages_Call ¶ added in v1.1.0
Usecase_AddProductImages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddProductImages'
func (*Usecase_AddProductImages_Call) Return ¶ added in v1.1.0
func (_c *Usecase_AddProductImages_Call) Return(_a0 *entities.Product, _a1 error) *Usecase_AddProductImages_Call
func (*Usecase_AddProductImages_Call) Run ¶ added in v1.1.0
func (_c *Usecase_AddProductImages_Call) Run(run func(id entities.ID, images map[string][]byte, imageConfigs map[string]imageproxy.ImageConfig)) *Usecase_AddProductImages_Call
func (*Usecase_AddProductImages_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_AddProductImages_Call) RunAndReturn(run func(entities.ID, map[string][]byte, map[string]imageproxy.ImageConfig) (*entities.Product, error)) *Usecase_AddProductImages_Call
type Usecase_CreateCategory_Call ¶ added in v1.1.0
Usecase_CreateCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateCategory'
func (*Usecase_CreateCategory_Call) Return ¶ added in v1.1.0
func (_c *Usecase_CreateCategory_Call) Return(_a0 *entities.Category, _a1 error) *Usecase_CreateCategory_Call
func (*Usecase_CreateCategory_Call) Run ¶ added in v1.1.0
func (_c *Usecase_CreateCategory_Call) Run(run func(e *entities.Category)) *Usecase_CreateCategory_Call
func (*Usecase_CreateCategory_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_CreateCategory_Call) RunAndReturn(run func(*entities.Category) (*entities.Category, error)) *Usecase_CreateCategory_Call
type Usecase_CreateManufacturer_Call ¶ added in v1.1.0
Usecase_CreateManufacturer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateManufacturer'
func (*Usecase_CreateManufacturer_Call) Return ¶ added in v1.1.0
func (_c *Usecase_CreateManufacturer_Call) Return(_a0 *entities.Manufacturer, _a1 error) *Usecase_CreateManufacturer_Call
func (*Usecase_CreateManufacturer_Call) Run ¶ added in v1.1.0
func (_c *Usecase_CreateManufacturer_Call) Run(run func(e *entities.Manufacturer)) *Usecase_CreateManufacturer_Call
func (*Usecase_CreateManufacturer_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_CreateManufacturer_Call) RunAndReturn(run func(*entities.Manufacturer) (*entities.Manufacturer, error)) *Usecase_CreateManufacturer_Call
type Usecase_CreateProduct_Call ¶ added in v1.1.0
Usecase_CreateProduct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateProduct'
func (*Usecase_CreateProduct_Call) Return ¶ added in v1.1.0
func (_c *Usecase_CreateProduct_Call) Return(_a0 *entities.Product, _a1 error) *Usecase_CreateProduct_Call
func (*Usecase_CreateProduct_Call) Run ¶ added in v1.1.0
func (_c *Usecase_CreateProduct_Call) Run(run func(e *entities.Product)) *Usecase_CreateProduct_Call
func (*Usecase_CreateProduct_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_CreateProduct_Call) RunAndReturn(run func(*entities.Product) (*entities.Product, error)) *Usecase_CreateProduct_Call
type Usecase_CreateServiceCategory_Call ¶ added in v1.1.0
Usecase_CreateServiceCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateServiceCategory'
func (*Usecase_CreateServiceCategory_Call) Return ¶ added in v1.1.0
func (_c *Usecase_CreateServiceCategory_Call) Return(_a0 *entities.ServiceCategory, _a1 error) *Usecase_CreateServiceCategory_Call
func (*Usecase_CreateServiceCategory_Call) Run ¶ added in v1.1.0
func (_c *Usecase_CreateServiceCategory_Call) Run(run func(e *entities.ServiceCategory)) *Usecase_CreateServiceCategory_Call
func (*Usecase_CreateServiceCategory_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_CreateServiceCategory_Call) RunAndReturn(run func(*entities.ServiceCategory) (*entities.ServiceCategory, error)) *Usecase_CreateServiceCategory_Call
type Usecase_CreateService_Call ¶ added in v1.1.0
Usecase_CreateService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateService'
func (*Usecase_CreateService_Call) Return ¶ added in v1.1.0
func (_c *Usecase_CreateService_Call) Return(_a0 *entities.Service, _a1 error) *Usecase_CreateService_Call
func (*Usecase_CreateService_Call) Run ¶ added in v1.1.0
func (_c *Usecase_CreateService_Call) Run(run func(e *entities.Service)) *Usecase_CreateService_Call
func (*Usecase_CreateService_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_CreateService_Call) RunAndReturn(run func(*entities.Service) (*entities.Service, error)) *Usecase_CreateService_Call
type Usecase_DeleteCategoryImage_Call ¶ added in v1.1.0
Usecase_DeleteCategoryImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteCategoryImage'
func (*Usecase_DeleteCategoryImage_Call) Return ¶ added in v1.1.0
func (_c *Usecase_DeleteCategoryImage_Call) Return(_a0 error) *Usecase_DeleteCategoryImage_Call
func (*Usecase_DeleteCategoryImage_Call) Run ¶ added in v1.1.0
func (_c *Usecase_DeleteCategoryImage_Call) Run(run func(categoryID entities.ID)) *Usecase_DeleteCategoryImage_Call
func (*Usecase_DeleteCategoryImage_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_DeleteCategoryImage_Call) RunAndReturn(run func(entities.ID) error) *Usecase_DeleteCategoryImage_Call
type Usecase_DeleteCategory_Call ¶ added in v1.1.0
Usecase_DeleteCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteCategory'
func (*Usecase_DeleteCategory_Call) Return ¶ added in v1.1.0
func (_c *Usecase_DeleteCategory_Call) Return(_a0 error) *Usecase_DeleteCategory_Call
func (*Usecase_DeleteCategory_Call) Run ¶ added in v1.1.0
func (_c *Usecase_DeleteCategory_Call) Run(run func(id entities.ID)) *Usecase_DeleteCategory_Call
func (*Usecase_DeleteCategory_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_DeleteCategory_Call) RunAndReturn(run func(entities.ID) error) *Usecase_DeleteCategory_Call
type Usecase_DeleteManufacturerImage_Call ¶ added in v1.1.0
Usecase_DeleteManufacturerImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteManufacturerImage'
func (*Usecase_DeleteManufacturerImage_Call) Return ¶ added in v1.1.0
func (_c *Usecase_DeleteManufacturerImage_Call) Return(_a0 error) *Usecase_DeleteManufacturerImage_Call
func (*Usecase_DeleteManufacturerImage_Call) Run ¶ added in v1.1.0
func (_c *Usecase_DeleteManufacturerImage_Call) Run(run func(manufacturerID entities.ID)) *Usecase_DeleteManufacturerImage_Call
func (*Usecase_DeleteManufacturerImage_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_DeleteManufacturerImage_Call) RunAndReturn(run func(entities.ID) error) *Usecase_DeleteManufacturerImage_Call
type Usecase_DeleteManufacturer_Call ¶ added in v1.1.0
Usecase_DeleteManufacturer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteManufacturer'
func (*Usecase_DeleteManufacturer_Call) Return ¶ added in v1.1.0
func (_c *Usecase_DeleteManufacturer_Call) Return(_a0 error) *Usecase_DeleteManufacturer_Call
func (*Usecase_DeleteManufacturer_Call) Run ¶ added in v1.1.0
func (_c *Usecase_DeleteManufacturer_Call) Run(run func(id entities.ID)) *Usecase_DeleteManufacturer_Call
func (*Usecase_DeleteManufacturer_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_DeleteManufacturer_Call) RunAndReturn(run func(entities.ID) error) *Usecase_DeleteManufacturer_Call
type Usecase_DeleteProductImage_Call ¶ added in v1.1.0
Usecase_DeleteProductImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteProductImage'
func (*Usecase_DeleteProductImage_Call) Return ¶ added in v1.1.0
func (_c *Usecase_DeleteProductImage_Call) Return(_a0 error) *Usecase_DeleteProductImage_Call
func (*Usecase_DeleteProductImage_Call) Run ¶ added in v1.1.0
func (_c *Usecase_DeleteProductImage_Call) Run(run func(productID entities.ID, imageID entities.ID)) *Usecase_DeleteProductImage_Call
func (*Usecase_DeleteProductImage_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_DeleteProductImage_Call) RunAndReturn(run func(entities.ID, entities.ID) error) *Usecase_DeleteProductImage_Call
type Usecase_DeleteProduct_Call ¶ added in v1.1.0
Usecase_DeleteProduct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteProduct'
func (*Usecase_DeleteProduct_Call) Return ¶ added in v1.1.0
func (_c *Usecase_DeleteProduct_Call) Return(_a0 error) *Usecase_DeleteProduct_Call
func (*Usecase_DeleteProduct_Call) Run ¶ added in v1.1.0
func (_c *Usecase_DeleteProduct_Call) Run(run func(id entities.ID)) *Usecase_DeleteProduct_Call
func (*Usecase_DeleteProduct_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_DeleteProduct_Call) RunAndReturn(run func(entities.ID) error) *Usecase_DeleteProduct_Call
type Usecase_DeleteServiceCategory_Call ¶ added in v1.1.0
Usecase_DeleteServiceCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteServiceCategory'
func (*Usecase_DeleteServiceCategory_Call) Return ¶ added in v1.1.0
func (_c *Usecase_DeleteServiceCategory_Call) Return(_a0 error) *Usecase_DeleteServiceCategory_Call
func (*Usecase_DeleteServiceCategory_Call) Run ¶ added in v1.1.0
func (_c *Usecase_DeleteServiceCategory_Call) Run(run func(id entities.ID)) *Usecase_DeleteServiceCategory_Call
func (*Usecase_DeleteServiceCategory_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_DeleteServiceCategory_Call) RunAndReturn(run func(entities.ID) error) *Usecase_DeleteServiceCategory_Call
type Usecase_DeleteService_Call ¶ added in v1.1.0
Usecase_DeleteService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteService'
func (*Usecase_DeleteService_Call) Return ¶ added in v1.1.0
func (_c *Usecase_DeleteService_Call) Return(_a0 error) *Usecase_DeleteService_Call
func (*Usecase_DeleteService_Call) Run ¶ added in v1.1.0
func (_c *Usecase_DeleteService_Call) Run(run func(id entities.ID)) *Usecase_DeleteService_Call
func (*Usecase_DeleteService_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_DeleteService_Call) RunAndReturn(run func(entities.ID) error) *Usecase_DeleteService_Call
type Usecase_Expecter ¶ added in v1.1.0
type Usecase_Expecter struct {
// contains filtered or unexported fields
}
func (*Usecase_Expecter) AddProductImages ¶ added in v1.1.0
func (_e *Usecase_Expecter) AddProductImages(id interface{}, images interface{}, imageConfigs interface{}) *Usecase_AddProductImages_Call
AddProductImages is a helper method to define mock.On call
- id entities.ID
- images map[string][]byte
- imageConfigs map[string]imageproxy.ImageConfig
func (*Usecase_Expecter) CreateCategory ¶ added in v1.1.0
func (_e *Usecase_Expecter) CreateCategory(e interface{}) *Usecase_CreateCategory_Call
CreateCategory is a helper method to define mock.On call
- e *entities.Category
func (*Usecase_Expecter) CreateManufacturer ¶ added in v1.1.0
func (_e *Usecase_Expecter) CreateManufacturer(e interface{}) *Usecase_CreateManufacturer_Call
CreateManufacturer is a helper method to define mock.On call
- e *entities.Manufacturer
func (*Usecase_Expecter) CreateProduct ¶ added in v1.1.0
func (_e *Usecase_Expecter) CreateProduct(e interface{}) *Usecase_CreateProduct_Call
CreateProduct is a helper method to define mock.On call
- e *entities.Product
func (*Usecase_Expecter) CreateService ¶ added in v1.1.0
func (_e *Usecase_Expecter) CreateService(e interface{}) *Usecase_CreateService_Call
CreateService is a helper method to define mock.On call
- e *entities.Service
func (*Usecase_Expecter) CreateServiceCategory ¶ added in v1.1.0
func (_e *Usecase_Expecter) CreateServiceCategory(e interface{}) *Usecase_CreateServiceCategory_Call
CreateServiceCategory is a helper method to define mock.On call
- e *entities.ServiceCategory
func (*Usecase_Expecter) DeleteCategory ¶ added in v1.1.0
func (_e *Usecase_Expecter) DeleteCategory(id interface{}) *Usecase_DeleteCategory_Call
DeleteCategory is a helper method to define mock.On call
- id entities.ID
func (*Usecase_Expecter) DeleteCategoryImage ¶ added in v1.1.0
func (_e *Usecase_Expecter) DeleteCategoryImage(categoryID interface{}) *Usecase_DeleteCategoryImage_Call
DeleteCategoryImage is a helper method to define mock.On call
- categoryID entities.ID
func (*Usecase_Expecter) DeleteManufacturer ¶ added in v1.1.0
func (_e *Usecase_Expecter) DeleteManufacturer(id interface{}) *Usecase_DeleteManufacturer_Call
DeleteManufacturer is a helper method to define mock.On call
- id entities.ID
func (*Usecase_Expecter) DeleteManufacturerImage ¶ added in v1.1.0
func (_e *Usecase_Expecter) DeleteManufacturerImage(manufacturerID interface{}) *Usecase_DeleteManufacturerImage_Call
DeleteManufacturerImage is a helper method to define mock.On call
- manufacturerID entities.ID
func (*Usecase_Expecter) DeleteProduct ¶ added in v1.1.0
func (_e *Usecase_Expecter) DeleteProduct(id interface{}) *Usecase_DeleteProduct_Call
DeleteProduct is a helper method to define mock.On call
- id entities.ID
func (*Usecase_Expecter) DeleteProductImage ¶ added in v1.1.0
func (_e *Usecase_Expecter) DeleteProductImage(productID interface{}, imageID interface{}) *Usecase_DeleteProductImage_Call
DeleteProductImage is a helper method to define mock.On call
- productID entities.ID
- imageID entities.ID
func (*Usecase_Expecter) DeleteService ¶ added in v1.1.0
func (_e *Usecase_Expecter) DeleteService(id interface{}) *Usecase_DeleteService_Call
DeleteService is a helper method to define mock.On call
- id entities.ID
func (*Usecase_Expecter) DeleteServiceCategory ¶ added in v1.1.0
func (_e *Usecase_Expecter) DeleteServiceCategory(id interface{}) *Usecase_DeleteServiceCategory_Call
DeleteServiceCategory is a helper method to define mock.On call
- id entities.ID
func (*Usecase_Expecter) GetCategory ¶ added in v1.1.0
func (_e *Usecase_Expecter) GetCategory(id interface{}, imageConfigs interface{}) *Usecase_GetCategory_Call
GetCategory is a helper method to define mock.On call
- id entities.ID
- imageConfigs map[string]imageproxy.ImageConfig
func (*Usecase_Expecter) GetManufacturer ¶ added in v1.1.0
func (_e *Usecase_Expecter) GetManufacturer(id interface{}, imageConfigs interface{}) *Usecase_GetManufacturer_Call
GetManufacturer is a helper method to define mock.On call
- id entities.ID
- imageConfigs map[string]imageproxy.ImageConfig
func (*Usecase_Expecter) GetProduct ¶ added in v1.1.0
func (_e *Usecase_Expecter) GetProduct(id interface{}, resolved interface{}, imageConfigs interface{}) *Usecase_GetProduct_Call
GetProduct is a helper method to define mock.On call
- id entities.ID
- resolved bool
- imageConfigs map[string]imageproxy.ImageConfig
func (*Usecase_Expecter) GetService ¶ added in v1.1.0
func (_e *Usecase_Expecter) GetService(id interface{}) *Usecase_GetService_Call
GetService is a helper method to define mock.On call
- id entities.ID
func (*Usecase_Expecter) GetServiceCategory ¶ added in v1.1.0
func (_e *Usecase_Expecter) GetServiceCategory(id interface{}, resolved interface{}) *Usecase_GetServiceCategory_Call
GetServiceCategory is a helper method to define mock.On call
- id entities.ID
- resolved bool
func (*Usecase_Expecter) ListCategories ¶ added in v1.1.0
func (_e *Usecase_Expecter) ListCategories(imageConfigs interface{}) *Usecase_ListCategories_Call
ListCategories is a helper method to define mock.On call
- imageConfigs map[string]imageproxy.ImageConfig
func (*Usecase_Expecter) ListManufacturers ¶ added in v1.1.0
func (_e *Usecase_Expecter) ListManufacturers(imageConfigs interface{}) *Usecase_ListManufacturers_Call
ListManufacturers is a helper method to define mock.On call
- imageConfigs map[string]imageproxy.ImageConfig
func (*Usecase_Expecter) ListProducts ¶ added in v1.1.0
func (_e *Usecase_Expecter) ListProducts(imageConfigs interface{}) *Usecase_ListProducts_Call
ListProducts is a helper method to define mock.On call
- imageConfigs map[string]imageproxy.ImageConfig
func (*Usecase_Expecter) ListServiceCategories ¶ added in v1.1.0
func (_e *Usecase_Expecter) ListServiceCategories(resolved interface{}) *Usecase_ListServiceCategories_Call
ListServiceCategories is a helper method to define mock.On call
- resolved bool
func (*Usecase_Expecter) UpdateCategory ¶ added in v1.1.0
func (_e *Usecase_Expecter) UpdateCategory(e interface{}) *Usecase_UpdateCategory_Call
UpdateCategory is a helper method to define mock.On call
- e *entities.Category
func (*Usecase_Expecter) UpdateManufacturer ¶ added in v1.1.0
func (_e *Usecase_Expecter) UpdateManufacturer(e interface{}) *Usecase_UpdateManufacturer_Call
UpdateManufacturer is a helper method to define mock.On call
- e *entities.Manufacturer
func (*Usecase_Expecter) UpdateProduct ¶ added in v1.1.0
func (_e *Usecase_Expecter) UpdateProduct(e interface{}) *Usecase_UpdateProduct_Call
UpdateProduct is a helper method to define mock.On call
- e *entities.Product
func (*Usecase_Expecter) UpdateProductImage ¶ added in v1.1.0
func (_e *Usecase_Expecter) UpdateProductImage(productID interface{}, imageID interface{}, order interface{}) *Usecase_UpdateProductImage_Call
UpdateProductImage is a helper method to define mock.On call
- productID entities.ID
- imageID entities.ID
- order int
func (*Usecase_Expecter) UpdateService ¶ added in v1.1.0
func (_e *Usecase_Expecter) UpdateService(e interface{}) *Usecase_UpdateService_Call
UpdateService is a helper method to define mock.On call
- e *entities.Service
func (*Usecase_Expecter) UpdateServiceCategory ¶ added in v1.1.0
func (_e *Usecase_Expecter) UpdateServiceCategory(e interface{}) *Usecase_UpdateServiceCategory_Call
UpdateServiceCategory is a helper method to define mock.On call
- e *entities.ServiceCategory
func (*Usecase_Expecter) UpsertCategoryImage ¶ added in v1.1.0
func (_e *Usecase_Expecter) UpsertCategoryImage(categoryID interface{}, imageName interface{}, imageContent interface{}, imageConfigs interface{}) *Usecase_UpsertCategoryImage_Call
UpsertCategoryImage is a helper method to define mock.On call
- categoryID entities.ID
- imageName string
- imageContent []byte
- imageConfigs map[string]imageproxy.ImageConfig
func (*Usecase_Expecter) UpsertManufacturerImage ¶ added in v1.1.0
func (_e *Usecase_Expecter) UpsertManufacturerImage(manufacturerID interface{}, imageName interface{}, imageContent interface{}, imageConfigs interface{}) *Usecase_UpsertManufacturerImage_Call
UpsertManufacturerImage is a helper method to define mock.On call
- manufacturerID entities.ID
- imageName string
- imageContent []byte
- imageConfigs map[string]imageproxy.ImageConfig
type Usecase_GetCategory_Call ¶ added in v1.1.0
Usecase_GetCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCategory'
func (*Usecase_GetCategory_Call) Return ¶ added in v1.1.0
func (_c *Usecase_GetCategory_Call) Return(_a0 *entities.Category, _a1 error) *Usecase_GetCategory_Call
func (*Usecase_GetCategory_Call) Run ¶ added in v1.1.0
func (_c *Usecase_GetCategory_Call) Run(run func(id entities.ID, imageConfigs map[string]imageproxy.ImageConfig)) *Usecase_GetCategory_Call
func (*Usecase_GetCategory_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_GetCategory_Call) RunAndReturn(run func(entities.ID, map[string]imageproxy.ImageConfig) (*entities.Category, error)) *Usecase_GetCategory_Call
type Usecase_GetManufacturer_Call ¶ added in v1.1.0
Usecase_GetManufacturer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetManufacturer'
func (*Usecase_GetManufacturer_Call) Return ¶ added in v1.1.0
func (_c *Usecase_GetManufacturer_Call) Return(_a0 *entities.Manufacturer, _a1 error) *Usecase_GetManufacturer_Call
func (*Usecase_GetManufacturer_Call) Run ¶ added in v1.1.0
func (_c *Usecase_GetManufacturer_Call) Run(run func(id entities.ID, imageConfigs map[string]imageproxy.ImageConfig)) *Usecase_GetManufacturer_Call
func (*Usecase_GetManufacturer_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_GetManufacturer_Call) RunAndReturn(run func(entities.ID, map[string]imageproxy.ImageConfig) (*entities.Manufacturer, error)) *Usecase_GetManufacturer_Call
type Usecase_GetProduct_Call ¶ added in v1.1.0
Usecase_GetProduct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProduct'
func (*Usecase_GetProduct_Call) Return ¶ added in v1.1.0
func (_c *Usecase_GetProduct_Call) Return(_a0 *entities.ResolvedProduct, _a1 error) *Usecase_GetProduct_Call
func (*Usecase_GetProduct_Call) Run ¶ added in v1.1.0
func (_c *Usecase_GetProduct_Call) Run(run func(id entities.ID, resolved bool, imageConfigs map[string]imageproxy.ImageConfig)) *Usecase_GetProduct_Call
func (*Usecase_GetProduct_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_GetProduct_Call) RunAndReturn(run func(entities.ID, bool, map[string]imageproxy.ImageConfig) (*entities.ResolvedProduct, error)) *Usecase_GetProduct_Call
type Usecase_GetServiceCategory_Call ¶ added in v1.1.0
Usecase_GetServiceCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetServiceCategory'
func (*Usecase_GetServiceCategory_Call) Return ¶ added in v1.1.0
func (_c *Usecase_GetServiceCategory_Call) Return(_a0 *entities.ResolvedServiceCategory, _a1 error) *Usecase_GetServiceCategory_Call
func (*Usecase_GetServiceCategory_Call) Run ¶ added in v1.1.0
func (_c *Usecase_GetServiceCategory_Call) Run(run func(id entities.ID, resolved bool)) *Usecase_GetServiceCategory_Call
func (*Usecase_GetServiceCategory_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_GetServiceCategory_Call) RunAndReturn(run func(entities.ID, bool) (*entities.ResolvedServiceCategory, error)) *Usecase_GetServiceCategory_Call
type Usecase_GetService_Call ¶ added in v1.1.0
Usecase_GetService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetService'
func (*Usecase_GetService_Call) Return ¶ added in v1.1.0
func (_c *Usecase_GetService_Call) Return(_a0 *entities.Service, _a1 error) *Usecase_GetService_Call
func (*Usecase_GetService_Call) Run ¶ added in v1.1.0
func (_c *Usecase_GetService_Call) Run(run func(id entities.ID)) *Usecase_GetService_Call
func (*Usecase_GetService_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_GetService_Call) RunAndReturn(run func(entities.ID) (*entities.Service, error)) *Usecase_GetService_Call
type Usecase_ListCategories_Call ¶ added in v1.1.0
Usecase_ListCategories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListCategories'
func (*Usecase_ListCategories_Call) Return ¶ added in v1.1.0
func (_c *Usecase_ListCategories_Call) Return(_a0 []*entities.Category, _a1 error) *Usecase_ListCategories_Call
func (*Usecase_ListCategories_Call) Run ¶ added in v1.1.0
func (_c *Usecase_ListCategories_Call) Run(run func(imageConfigs map[string]imageproxy.ImageConfig)) *Usecase_ListCategories_Call
func (*Usecase_ListCategories_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_ListCategories_Call) RunAndReturn(run func(map[string]imageproxy.ImageConfig) ([]*entities.Category, error)) *Usecase_ListCategories_Call
type Usecase_ListManufacturers_Call ¶ added in v1.1.0
Usecase_ListManufacturers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListManufacturers'
func (*Usecase_ListManufacturers_Call) Return ¶ added in v1.1.0
func (_c *Usecase_ListManufacturers_Call) Return(_a0 []*entities.Manufacturer, _a1 error) *Usecase_ListManufacturers_Call
func (*Usecase_ListManufacturers_Call) Run ¶ added in v1.1.0
func (_c *Usecase_ListManufacturers_Call) Run(run func(imageConfigs map[string]imageproxy.ImageConfig)) *Usecase_ListManufacturers_Call
func (*Usecase_ListManufacturers_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_ListManufacturers_Call) RunAndReturn(run func(map[string]imageproxy.ImageConfig) ([]*entities.Manufacturer, error)) *Usecase_ListManufacturers_Call
type Usecase_ListProducts_Call ¶ added in v1.1.0
Usecase_ListProducts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListProducts'
func (*Usecase_ListProducts_Call) Return ¶ added in v1.1.0
func (_c *Usecase_ListProducts_Call) Return(_a0 []*entities.Product, _a1 error) *Usecase_ListProducts_Call
func (*Usecase_ListProducts_Call) Run ¶ added in v1.1.0
func (_c *Usecase_ListProducts_Call) Run(run func(imageConfigs map[string]imageproxy.ImageConfig)) *Usecase_ListProducts_Call
func (*Usecase_ListProducts_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_ListProducts_Call) RunAndReturn(run func(map[string]imageproxy.ImageConfig) ([]*entities.Product, error)) *Usecase_ListProducts_Call
type Usecase_ListServiceCategories_Call ¶ added in v1.1.0
Usecase_ListServiceCategories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListServiceCategories'
func (*Usecase_ListServiceCategories_Call) Return ¶ added in v1.1.0
func (_c *Usecase_ListServiceCategories_Call) Return(_a0 []*entities.ResolvedServiceCategory, _a1 error) *Usecase_ListServiceCategories_Call
func (*Usecase_ListServiceCategories_Call) Run ¶ added in v1.1.0
func (_c *Usecase_ListServiceCategories_Call) Run(run func(resolved bool)) *Usecase_ListServiceCategories_Call
func (*Usecase_ListServiceCategories_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_ListServiceCategories_Call) RunAndReturn(run func(bool) ([]*entities.ResolvedServiceCategory, error)) *Usecase_ListServiceCategories_Call
type Usecase_UpdateCategory_Call ¶ added in v1.1.0
Usecase_UpdateCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateCategory'
func (*Usecase_UpdateCategory_Call) Return ¶ added in v1.1.0
func (_c *Usecase_UpdateCategory_Call) Return(_a0 *entities.Category, _a1 error) *Usecase_UpdateCategory_Call
func (*Usecase_UpdateCategory_Call) Run ¶ added in v1.1.0
func (_c *Usecase_UpdateCategory_Call) Run(run func(e *entities.Category)) *Usecase_UpdateCategory_Call
func (*Usecase_UpdateCategory_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_UpdateCategory_Call) RunAndReturn(run func(*entities.Category) (*entities.Category, error)) *Usecase_UpdateCategory_Call
type Usecase_UpdateManufacturer_Call ¶ added in v1.1.0
Usecase_UpdateManufacturer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateManufacturer'
func (*Usecase_UpdateManufacturer_Call) Return ¶ added in v1.1.0
func (_c *Usecase_UpdateManufacturer_Call) Return(_a0 *entities.Manufacturer, _a1 error) *Usecase_UpdateManufacturer_Call
func (*Usecase_UpdateManufacturer_Call) Run ¶ added in v1.1.0
func (_c *Usecase_UpdateManufacturer_Call) Run(run func(e *entities.Manufacturer)) *Usecase_UpdateManufacturer_Call
func (*Usecase_UpdateManufacturer_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_UpdateManufacturer_Call) RunAndReturn(run func(*entities.Manufacturer) (*entities.Manufacturer, error)) *Usecase_UpdateManufacturer_Call
type Usecase_UpdateProductImage_Call ¶ added in v1.1.0
Usecase_UpdateProductImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateProductImage'
func (*Usecase_UpdateProductImage_Call) Return ¶ added in v1.1.0
func (_c *Usecase_UpdateProductImage_Call) Return(_a0 []*entities.Image, _a1 error) *Usecase_UpdateProductImage_Call
func (*Usecase_UpdateProductImage_Call) Run ¶ added in v1.1.0
func (_c *Usecase_UpdateProductImage_Call) Run(run func(productID entities.ID, imageID entities.ID, order int)) *Usecase_UpdateProductImage_Call
func (*Usecase_UpdateProductImage_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_UpdateProductImage_Call) RunAndReturn(run func(entities.ID, entities.ID, int) ([]*entities.Image, error)) *Usecase_UpdateProductImage_Call
type Usecase_UpdateProduct_Call ¶ added in v1.1.0
Usecase_UpdateProduct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateProduct'
func (*Usecase_UpdateProduct_Call) Return ¶ added in v1.1.0
func (_c *Usecase_UpdateProduct_Call) Return(_a0 *entities.Product, _a1 error) *Usecase_UpdateProduct_Call
func (*Usecase_UpdateProduct_Call) Run ¶ added in v1.1.0
func (_c *Usecase_UpdateProduct_Call) Run(run func(e *entities.Product)) *Usecase_UpdateProduct_Call
func (*Usecase_UpdateProduct_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_UpdateProduct_Call) RunAndReturn(run func(*entities.Product) (*entities.Product, error)) *Usecase_UpdateProduct_Call
type Usecase_UpdateServiceCategory_Call ¶ added in v1.1.0
Usecase_UpdateServiceCategory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateServiceCategory'
func (*Usecase_UpdateServiceCategory_Call) Return ¶ added in v1.1.0
func (_c *Usecase_UpdateServiceCategory_Call) Return(_a0 *entities.ServiceCategory, _a1 error) *Usecase_UpdateServiceCategory_Call
func (*Usecase_UpdateServiceCategory_Call) Run ¶ added in v1.1.0
func (_c *Usecase_UpdateServiceCategory_Call) Run(run func(e *entities.ServiceCategory)) *Usecase_UpdateServiceCategory_Call
func (*Usecase_UpdateServiceCategory_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_UpdateServiceCategory_Call) RunAndReturn(run func(*entities.ServiceCategory) (*entities.ServiceCategory, error)) *Usecase_UpdateServiceCategory_Call
type Usecase_UpdateService_Call ¶ added in v1.1.0
Usecase_UpdateService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateService'
func (*Usecase_UpdateService_Call) Return ¶ added in v1.1.0
func (_c *Usecase_UpdateService_Call) Return(_a0 *entities.Service, _a1 error) *Usecase_UpdateService_Call
func (*Usecase_UpdateService_Call) Run ¶ added in v1.1.0
func (_c *Usecase_UpdateService_Call) Run(run func(e *entities.Service)) *Usecase_UpdateService_Call
func (*Usecase_UpdateService_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_UpdateService_Call) RunAndReturn(run func(*entities.Service) (*entities.Service, error)) *Usecase_UpdateService_Call
type Usecase_UpsertCategoryImage_Call ¶ added in v1.1.0
Usecase_UpsertCategoryImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpsertCategoryImage'
func (*Usecase_UpsertCategoryImage_Call) Return ¶ added in v1.1.0
func (_c *Usecase_UpsertCategoryImage_Call) Return(_a0 *entities.Category, _a1 error) *Usecase_UpsertCategoryImage_Call
func (*Usecase_UpsertCategoryImage_Call) Run ¶ added in v1.1.0
func (_c *Usecase_UpsertCategoryImage_Call) Run(run func(categoryID entities.ID, imageName string, imageContent []byte, imageConfigs map[string]imageproxy.ImageConfig)) *Usecase_UpsertCategoryImage_Call
func (*Usecase_UpsertCategoryImage_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_UpsertCategoryImage_Call) RunAndReturn(run func(entities.ID, string, []byte, map[string]imageproxy.ImageConfig) (*entities.Category, error)) *Usecase_UpsertCategoryImage_Call
type Usecase_UpsertManufacturerImage_Call ¶ added in v1.1.0
Usecase_UpsertManufacturerImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpsertManufacturerImage'
func (*Usecase_UpsertManufacturerImage_Call) Return ¶ added in v1.1.0
func (_c *Usecase_UpsertManufacturerImage_Call) Return(_a0 *entities.Manufacturer, _a1 error) *Usecase_UpsertManufacturerImage_Call
func (*Usecase_UpsertManufacturerImage_Call) Run ¶ added in v1.1.0
func (_c *Usecase_UpsertManufacturerImage_Call) Run(run func(manufacturerID entities.ID, imageName string, imageContent []byte, imageConfigs map[string]imageproxy.ImageConfig)) *Usecase_UpsertManufacturerImage_Call
func (*Usecase_UpsertManufacturerImage_Call) RunAndReturn ¶ added in v1.1.0
func (_c *Usecase_UpsertManufacturerImage_Call) RunAndReturn(run func(entities.ID, string, []byte, map[string]imageproxy.ImageConfig) (*entities.Manufacturer, error)) *Usecase_UpsertManufacturerImage_Call