graycoreio/daffodil

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

Summary

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

import { provideDaffPaymentDriver } from '@daffodil/payment/driver';

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

/**
 * Provides the {@link DaffPaymentTestingDriver} as the {@link DaffPaymentDriver}.
 */
@NgModule({
  imports: [
    CommonModule,
  ],
})
export class DaffPaymentTestingDriverModule {
  static forRoot(): ModuleWithProviders<DaffPaymentTestingDriverModule> {
    return {
      ngModule: DaffPaymentTestingDriverModule,
      providers: [
        provideDaffPaymentDriver(DaffPaymentTestingDriver),
      ],
    };
  }
}