ResetInstance<T> extension

Extension on GetInterface providing a method to reset all registered instances.

on

Methods

resetInstance({bool clearRouteBindings = true}) bool

Available on GetInterface, provided by the ResetInstance extension

Clears all registered instances and/or tags. This method is particularly useful for cleaning up resources at the end or tearDown of unit tests.