Re:A todo list for new ASP.NET Core projects
by mattmanser on Friday February 09, 2018 @10:38AM
(#16340912)
Read about Ruby and DHH's opinion on DI. That's how.
Also, remember there's a huge swathe of apps where tests are wholly inappropriate and designing everything around DI is annoying for all those cases.
Prototypes, one time apps, internal tasks, the significant proportion of programmers who think testing's a waste of time and/or money, etc. or that only small, key parts should be tested.
Re:A todo list for new ASP.NET Core projects
by PerfectElement on Thursday February 08, 2018 @11:09AM
(#16333087)
In the case of the configuration manager, the test project would have its own underlying configuration file.
But yes I agree injecting configuration seems sub-optimal at best.