diff --git a/Projects/App/Sources/Application/DI/School/AppComponent+School.swift b/Projects/App/Sources/Application/DI/School/AppComponent+School.swift new file mode 100644 index 00000000..5fb4463a --- /dev/null +++ b/Projects/App/Sources/Application/DI/School/AppComponent+School.swift @@ -0,0 +1,30 @@ +import NeedleFoundation +import NetworkModule +import DomainModule +import DataModule + +public extension AppComponent { + var remoteSchoolDataSource: any RemoteSchoolDataSource { + RemoteSchoolDataSourceStub() + } + + var schoolRepository: any SchoolRepository { + SchoolRepositoryImpl(remoteSchoolDataSource: remoteSchoolDataSource) + } + + var fetchSchoolListUseCase: any FetchSchoolListUseCase { + FetchSchoolListUseCaseImpl(schoolRepository: schoolRepository) + } + + var fetchSchoolQuestionUseCase: any FetchSchoolQuestionUseCase { + FetchSchoolQuestionUseCaseImpl(schoolRepository: schoolRepository) + } + + var checkSchoolQuestionUseCase: any CheckSchoolQuestionUseCase { + CheckSchoolQuestionUseCaseImpl(schoolRepository: schoolRepository) + } + + var checkSchoolCodeUseCase: any CheckSchoolCodeUseCase { + CheckSchoolCodeUseCaseImpl(schoolRepository: schoolRepository) + } +}