Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save romainbsl/ba7fc6b2de523c9aeb9beccb171b6201 to your computer and use it in GitHub Desktop.

Select an option

Save romainbsl/ba7fc6b2de523c9aeb9beccb171b6201 to your computer and use it in GitHub Desktop.
val notLoggedInContainer = DI {
import(loginModule, allowOverride = true)
bind<AuthApi>(overrides = true) with singleton { AuthApiError() }
bind<TokenRepository>(overrides = true) with singleton { TokenRepositoryNotLoggedIn() }
bind() from provider { TestLoginView() }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment