I "discovered" DI when learning about Unit Testing, but the benefits to maintainability were obvious from the get-go.
I'm not sure many people argued that it wasn't about maintainability. I'd say they just ignored that part of the argument.
The best explanations of Unit Tests I've seen also explain how it helps improve maintainability, so perhaps that's why Unit Testing and Maintainability has always gone hand-in-hand in my thinking.
I'm not sure many people argued that it wasn't about maintainability. I'd say they just ignored that part of the argument.
The best explanations of Unit Tests I've seen also explain how it helps improve maintainability, so perhaps that's why Unit Testing and Maintainability has always gone hand-in-hand in my thinking.