Created
May 31, 2024 17:00
-
-
Save PCreations/eff81af95c9424d3476547ef56a5364d to your computer and use it in GitHub Desktop.
c0a2e3b039d9.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-1,10 +1,18 @@ | |
import { Module } from '@nestjs/common'; | |
import { AppController } from './app.controller'; | |
-import { AppService } from './app.service'; | |
+import { AddBookUseCase } from './add-book.usecase'; | |
+import { StubBookRepository } from './stub.book-repository'; | |
+import { BookRepository } from './book-repository.port'; | |
@Module({ | |
imports: [], | |
controllers: [AppController], | |
- providers: [AppService], | |
+ providers: [ | |
+ { | |
+ provide: BookRepository, | |
+ useValue: StubBookRepository, | |
+ }, | |
+ AddBookUseCase, | |
+ ], | |
}) | |
export class AppModule {} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment