[FIX] Rechangement de repo dans la factory

Android
Renaud BEURET 1 year ago
parent 2d0e9022dd
commit ac75980226

@ -70,13 +70,8 @@ class KahootViewModel(
override fun <T : ViewModel> create(
modelClass: Class<T>
): T {
val repo = QuestionStubRepository()
repo.setQuestionsStub(arrayListOf(
StubQuestionWithReponses.ToModel(),
StubQuestionWithReponses2.ToModel()
))
return KahootViewModel(
repo
QuestionAPIRepository()
) as T
}
}

Loading…
Cancel
Save