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
}
anyGet all products.
anyGet a product by Id.
| Parameter | productId: string |
|---|---|
| Description |
anyGet a product by URL.
| Parameter | url: string |
|---|---|
| Description |