def test_bind_provider(self): provider = lambda: 123 binder = Binder() binder.bind_to_provider(int, provider) assert binder._bindings[int] is provider
def bind(binder: Binder) -> None: binder.bind_to_provider(TaskRepository, TaskRepository) binder.bind_to_provider(AuthenticationRepository, AuthenticationRepository)