import { Injectable } from '@angular/core' ; import { BehaviorSubject } from 'rxjs' ; import { DaffProduct } from '@daffodil/product' ; import { DaffProductFacadeInterface } from '@daffodil/product/state' ; inheritdoc @ Injectable ( { providedIn : 'root' } ) export class MockDaffProductFacade implements DaffProductFacadeInterface { deprecated loading$ : BehaviorSubject < boolean > = new BehaviorSubject ( false ) ; deprecated product$ : BehaviorSubject < DaffProduct > = new BehaviorSubject ( null ) ; getProduct ( id ) { return new BehaviorSubject ( null ) ; } getPrice ( id ) { return new BehaviorSubject ( null ) ; } hasDiscount ( id ) { return new BehaviorSubject ( false ) ; } getDiscountAmount ( id ) { return new BehaviorSubject ( null ) ; } getDiscountedPrice ( id ) { return new BehaviorSubject ( null ) ; } getDiscountPercent ( id ) { return new BehaviorSubject ( null ) ; } isOutOfStock ( id ) { return new BehaviorSubject ( false ) ; } dispatch ( action ) { } ; }