package Ġbr . com . r ro do val ho . mar vel app . util . mocks Ċ Ċ import Ġbr . com . r ro do val ho . domain . model .* Ċ import Ġbr . com . r ro do val ho . domain . repository . Mar vel Repository Ċ import Ġbr . com . r ro do val ho . domain . use case . Get Character Detail UseCase Ċ import Ġbr . com . r ro do val ho . domain . use case . Get Character List UseCase Ċ import Ġbr . com . r ro do val ho . mar vel app . main . features . character detail . Character Detail ViewModel Ċ import Ġbr . com . r ro do val ho . mar vel app . main . features . character list . Character List ViewModel Ċ import Ġbr . com . r ro do val ho . mar vel app . main . model . View Character Ċ import Ġorg . k oin . android x . view model . dsl . viewModel Ċ import Ġorg . k oin . dsl . module Ċ Ċ val Ġmocked UseCase Module Ġ= Ġmodule Ġ{ ĊĠĠĠ ĠviewModel < Character List ViewModel > Ġ{ ĠMock Character List ViewModel () Ġ} ĊĠĠĠ ĠviewModel < Character Detail ViewModel > Ġ{ ĠMock Character Detail ViewModel () Ġ} Ċ } Ċ Ċ class ĠMock Mar vel Repository : ĠMar vel Repository Ġ{ ĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġfetch Mar vel Character List ( limit : ĠInt , Ġoffset : ĠInt ): ĠList < Character > Ġ{ ĠTODO (" Not Ġyet Ġimplemented ") Ġ} ĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġfetch Com ics Detail ( com ic : ĠCom ic ): ĠCom ic Detail Ġ{ ĠTODO (" Not Ġyet Ġimplemented ") Ġ} Ċ } Ċ Ċ class ĠMock Get Character List UseCase : ĠGet Character List UseCase ( Mock Mar vel Repository ()) Ġ{} Ċ Ċ class ĠMock Character List ViewModel : ĠCharacter List ViewModel ( Mock Get Character List UseCase ()) Ġ{ ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġlateinit Ġvar Ġresource Ġ: ĠResource < List < View Character >> ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġget Character List () Ġ{ ĊĠĠĠĠĠĠĠ Ġ_ observe Data . value Ġ= Ġresource ĊĠĠĠ Ġ} Ċ } Ċ Ċ class ĠMock Get Character Detail UseCase : ĠGet Character Detail UseCase ( Mock Mar vel Repository ()) Ġ{} Ċ Ċ class ĠMock Character Detail ViewModel : ĠCharacter Detail ViewModel ( Mock Get Character Detail UseCase ()) Ġ{ ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġlateinit Ġvar Ġresource Ġ: ĠResource < Character Detail > ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġget Character Detail ( character : ĠView Character ) Ġ{ ĊĠĠĠĠĠĠĠ Ġ_ observe Data . value Ġ= Ġresource ĊĠĠĠ Ġ} Ċ Ċ }