Skip to content

Instantly share code, notes, and snippets.

@Raiden18
Last active July 13, 2022 09:22
Show Gist options
  • Save Raiden18/e94a6bdc311466682c26ec6b3f86ed58 to your computer and use it in GitHub Desktop.
Save Raiden18/e94a6bdc311466682c26ec6b3f86ed58 to your computer and use it in GitHub Desktop.
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