graycoreio/daffodil

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

Summary

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

import { provideDaffCustomerPaymentDriver } from '@daffodil/customer-payment/driver';

import { DaffCustomerPaymentTestingDriver } from './payment.service';

/**
 * Provides the {@link DaffCustomerPaymentTestingDriver} as the {@link DaffCustomerPaymentDriver}.
 */
@NgModule({
  imports: [
    CommonModule,
  ],
})
export class DaffCustomerPaymentTestingDriverModule {
  static forRoot(): ModuleWithProviders<DaffCustomerPaymentTestingDriverModule> {
    return {
      ngModule: DaffCustomerPaymentTestingDriverModule,
      providers: [
        provideDaffCustomerPaymentDriver(DaffCustomerPaymentTestingDriver),
      ],
    };
  }
}