From 5b0567beaf0a99d12a68142ef63da28deaa446df Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Wed, 5 Sep 2018 20:35:07 +0800 Subject: [PATCH] fill DI by modifyPsychomatrixUseCase --- .../insanusmokrassar/PsychomatrixBase/di/UseCasesDI.kt | 2 ++ .../PsychomatrixBase/di/realisations/UseCasesDIImpl.kt | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/di/UseCasesDI.kt b/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/di/UseCasesDI.kt index 9e9daf6..e3a4fb1 100644 --- a/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/di/UseCasesDI.kt +++ b/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/di/UseCasesDI.kt @@ -1,7 +1,9 @@ package com.github.insanusmokrassar.PsychomatrixBase.di import com.github.insanusmokrassar.PsychomatrixBase.domain.UseCases.CalculatePsychomatrixByDateUseCase +import com.github.insanusmokrassar.PsychomatrixBase.domain.UseCases.ModifyPsychomatrixUseCase interface UseCasesDI : EntitiesDI { val calculatePsychomatrixByDateUseCase: CalculatePsychomatrixByDateUseCase + val modifyPsychomatrixUseCase: ModifyPsychomatrixUseCase } \ No newline at end of file diff --git a/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/di/realisations/UseCasesDIImpl.kt b/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/di/realisations/UseCasesDIImpl.kt index 6052d13..c7b5128 100644 --- a/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/di/realisations/UseCasesDIImpl.kt +++ b/src/main/kotlin/com/github/insanusmokrassar/PsychomatrixBase/di/realisations/UseCasesDIImpl.kt @@ -3,13 +3,18 @@ package com.github.insanusmokrassar.PsychomatrixBase.di.realisations import com.github.insanusmokrassar.PsychomatrixBase.di.EntitiesDI import com.github.insanusmokrassar.PsychomatrixBase.di.UseCasesDI import com.github.insanusmokrassar.PsychomatrixBase.domain.UseCases.CalculatePsychomatrixByDateUseCase +import com.github.insanusmokrassar.PsychomatrixBase.domain.UseCases.ModifyPsychomatrixUseCase import com.github.insanusmokrassar.PsychomatrixBase.domain.interactors.CalculatePsychomatrixByDateUseCaseInteractor +import com.github.insanusmokrassar.PsychomatrixBase.domain.interactors.ModifyPsychomatrixUseCaseInteractor open class UseCasesDIImpl( entitiesDI: EntitiesDI ) : UseCasesDI, EntitiesDI by entitiesDI { - override val calculatePsychomatrixByDateUseCase: CalculatePsychomatrixByDateUseCase by lazy { CalculatePsychomatrixByDateUseCaseInteractor() } + + override val modifyPsychomatrixUseCase: ModifyPsychomatrixUseCase by lazy { + ModifyPsychomatrixUseCaseInteractor() + } }