ToProviderAsSingleton works