https://discord.umbraco.com logo
hi, I just wanted to ask (couldn't really find rel...
# umbraco-chat
s
hi, I just wanted to ask (couldn't really find relevant results elsewhere) - why are many things in Umbraco registered as singleton? (for instance IComponent, IContentFinder). There are other services that are scoped (eg IMemberManager) that then can't be injected unless we do it manually with scopes, or circumvent scope validation altogether by using a different environment name. It also complicates API integration testing via the Umbraco.Cms.Test.Integration package. The "UmbracoTestServerTestBase" in there forces scope validation on by default. Perhaps I am misunderstanding how Umbraco architecture is supposed to work but as it stands right now we basically can't do much meaningful automated testing on our codebase