Created
July 28, 2020 11:42
-
-
Save arkivanov/0b17ed0096fd219911f0c0bf56d27183 to your computer and use it in GitHub Desktop.
KittenComponentTest1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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