Last active
January 27, 2021 14:59
-
-
Save chrsp/c11f059172ec990b31d2afd3a00dd65d to your computer and use it in GitHub Desktop.
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
// Module: CleanArchitectureRestaurant | |
import Domain | |
import Data | |
import Presentation | |
final class DinningHallDIContainer { | |
func makeKitchenUseCase() -> KitchenUseCase { | |
let cooker = ItalianCooker() | |
let kitchenRemoteRepository = KitchenRemoteDataSource() | |
let kitchenLocalRepository = KitchenLocalDataSource() | |
return KitchenUseCase(localDataSource: kitchenLocalRepository, | |
remoteDataSource: kitchenRemoteRepository, | |
cooker: cooker) | |
} | |
func makeDinningHallViewModel() -> DinningHallViewModel { | |
DinningHallViewModel(kitchenUseCase: makeKitchenUseCase()) | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment