GitHub

DaffTestingProductService

Service

import { DaffTestingProductService } from '@daffodil/product/driver/testing'

The product testing driver to mock the backend product service.

@Injectable()
class DaffTestingProductService implements DaffProductServiceInterface {
  getAll(): any
  get(productId: string): any
  getByUrl(url: string): any
}

() Methods

getAll
any

Get all products.

get
any

Get a product by Id.

Parameters
ParameterproductId: string
Description
getByUrl
any

Get a product by URL.

Parameters
Parameterurl: string
Description