MockServiceRegistry.prototype.registerFactory<T extends object>(token: CapabilityToken,factory: ServiceFactory<T>,options?: RegisterOptions): void
Registers a lazy factory: the service is instantiated on first
get and cached for subsequent lookups.
factory: ServiceFactory<T>
Factory invoked once, on first lookup