Last active
July 13, 2022 09:22
-
-
Save Raiden18/e94a6bdc311466682c26ec6b3f86ed58 to your computer and use it in GitHub Desktop.
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
internal inner class Cases(private val viewModel: SomeViewModel) { | |
fun nowDataIsLoadedSuccessfully(dataToLoad: String): Cases { | |
coEvery { someInteractor.loadSomething() } returns dataToLoad | |
return this | |
} | |
fun userClicksOnRetryButton(): Cases { | |
viewModel.onRetryButtonClicked() | |
return this | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment