import { CommonModule } from '@angular/common' ; import { NgModule , ModuleWithProviders , } from '@angular/core' ; import { DaffProductDriver } from '@daffodil/product/driver' ; import { DaffProductTestingModule } from '@daffodil/product/testing' ; import { DaffTestingProductService } from './product.service' ; /**
 * Module for providing the  DaffProductTestingService driver as the  DaffProductDriver .
  @ NgModule ( { imports : [ CommonModule , DaffProductTestingModule , ] , } ) export class DaffProductTestingDriverModule { static forRoot ( ) { return { ngModule : DaffProductTestingDriverModule , providers : [ { provide : DaffProductDriver , useExisting : DaffTestingProductService , } , ] , } ; } }