It's one of the things that really frustrates me with the ASP.net team. They're obsessed with unit testing, have made really stupid decisions that means tons of stuff now gets injected instead of just passed, all in the name of unit testing.
But C# is a typed language and generally doesn't need reams of unit tests, so all it does is make the code unnecessarily complicated.
My big bugbear was when they idiotically made the config injected, of all the things that should be super simple to use, and definitely not injected, it's config. It only changes between environments.
But C# is a typed language and generally doesn't need reams of unit tests, so all it does is make the code unnecessarily complicated.
My big bugbear was when they idiotically made the config injected, of all the things that should be super simple to use, and definitely not injected, it's config. It only changes between environments.