2 votes

IOC life cycle and static class

I assume you mean "life cycle" and DI "frameworks"? I think here you are confusing static classes and singletons. You can use static classes and constructors to make singletons, ...
Ewan's user avatar
  • 74.4k
1 vote

Will I lose confidence of my code working in mocking dependency injected services?

Now that I've read your question a bit more thoroughly, I think the problem lies in you being unclear about what the public API of the IMagic type is, and how the return value figures in it. (It is ...
Filip Milovanović's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible