import { MockDaffProductFacade } from '@daffodil/product/state/testing'
@Injectable()
class MockDaffProductFacade implements DaffProductFacadeInterface {
getProduct(id: string): any
getPrice(id: string): any
hasDiscount(id: string): any
getDiscountAmount(id: string): any
getDiscountedPrice(id: string): any
getDiscountPercent(id: string): any
isOutOfStock(id: string): any
dispatch(action): void
}
anyGet a product.
| Parameter | id: string |
|---|---|
| Description |
anyGet the original price for a product.
| Parameter | id: string |
|---|---|
| Description |
anyWhether a particular product has a discount.
| Parameter | id: string |
|---|---|
| Description |
anyGet the discount amount of a product.
| Parameter | id: string |
|---|---|
| Description |
anyGet the discounted price for a product.
| Parameter | id: string |
|---|---|
| Description |
anyGet the discount percent of a product.
| Parameter | id: string |
|---|---|
| Description |
anyWhether a product is out of stock.
| Parameter | id: string |
|---|---|
| Description |
void| Parameter | action: undefined |
|---|---|
| Description |