Skip to content

Instantly share code, notes, and snippets.

@arkivanov
Created July 28, 2020 11:42
Show Gist options
  • Save arkivanov/0b17ed0096fd219911f0c0bf56d27183 to your computer and use it in GitHub Desktop.
Save arkivanov/0b17ed0096fd219911f0c0bf56d27183 to your computer and use it in GitHub Desktop.
KittenComponentTest1
class KittenComponentTest {
private val dataSourceScheduler = TestScheduler()
private val dataSource = TestKittenDataSource(dataSourceScheduler)
private val view = TestKittenView()
private fun startComponent(): KittenComponent =
KittenComponent(dataSource).apply {
onViewCreated(view)
onStart()
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment