overrideWith method

BinderOverride<T> overrideWith(
  1. InstanceFactory<T> create
)

Overrides the logic component with a new factory. This can be useful for mocking purposes.

Implementation

BinderOverride<T> overrideWith(InstanceFactory<T> create) {
  return BinderOverride<T>._(key, create);
}