reset method

void reset()

Clears all registered types. Handy when writing unit tests

Implementation

void reset() {
  _factories.clear();
  _factoriesByName.clear();
}