import { Module } from '@nestjs/common' ; import { CryptographyModule } from '@fc/cryptography' ; import { ExceptionsModule } from '@fc/exceptions' ; import { IdentityProviderAdapterEnvModule , IdentityProviderAdapterEnvService , } from '@fc/identity-provider-adapter-env' ; import { OidcClientModule } from '@fc/oidc-client' ; import { ServiceProviderAdapterEnvModule , ServiceProviderAdapterEnvService , } from '@fc/service-provider-adapter-env' ; import { SessionModule } from '@fc/session' ; import { MockServiceProviderController , OidcClientController , } from './controllers' ; import { MockServiceProviderSession } from './dto' ; const oidcClientModule = OidcClientModule . register ( IdentityProviderAdapterEnvService , IdentityProviderAdapterEnvModule , ServiceProviderAdapterEnvService , ServiceProviderAdapterEnvModule ) ; @ Module ( { imports : [ ExceptionsModule , IdentityProviderAdapterEnvModule , SessionModule . forRoot ( { schema : MockServiceProviderSession , } ) , CryptographyModule , oidcClientModule , ] , controllers : [ OidcClientController , MockServiceProviderController ] , } ) export class MockServiceProviderModule { }