07/16/2022, 2:01 PM
testing Repository class that takes DAO parameter I am learning Kotlin to build a note app. I have created a repository class as shown below which takes a Dao parameter. For now, the source of data is just Dao but in the tutorial I am following, it calls an API class as well. What I want to know is how do I test a repository classes logic? import androidx.lifecycle.LiveData import com.example.lastnotetakingapp.db.daos.NoteDao import com.example.lastnotetakingapp.db.models.Note class NotesRepo(private val notesDao: NoteDao) { val...