import { Injectable } from '@angular/core' ; import { Observable , of , } from 'rxjs' ; import { DaffOrder } from '@daffodil/order' ; import { DaffOrderServiceInterface } from '@daffodil/order/driver' ; import { DaffOrderFactory } from '@daffodil/order/testing' ; inheritdoc @ Injectable ( { providedIn : 'root' , } ) export class DaffTestingOrderService implements DaffOrderServiceInterface { constructor ( private orderFactory ) { } get ( orderId ) { return of ( this . orderFactory . create ( { id : orderId } ) ) ; } list ( ) { return of ( this . orderFactory . createMany ( 5 ) ) ; } }