graycoreio/daffodil

View on GitHub
libs/customer/driver/testing/src/drivers/customer-driver.module.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { CommonModule } from '@angular/common';
import {
  NgModule,
  ModuleWithProviders,
} from '@angular/core';

import {
  provideDaffCustomerAddressDriver,
  provideDaffCustomerDriver,
} from '@daffodil/customer/driver';

import { DaffCustomerAddressTestingDriver } from './address.service';
import { DaffCustomerTestingDriver } from './customer.service';

/**
 * Provides the {@link DaffCustomerTestingDriver} as the {@link DaffCustomerDriver}.
 */
@NgModule({
  imports: [
    CommonModule,
  ],
})
export class DaffCustomerTestingDriverModule {
  static forRoot(): ModuleWithProviders<DaffCustomerTestingDriverModule> {
    return {
      ngModule: DaffCustomerTestingDriverModule,
      providers: [
        provideDaffCustomerDriver(DaffCustomerTestingDriver),
        provideDaffCustomerAddressDriver(DaffCustomerAddressTestingDriver),
      ],
    };
  }
}