2 ms·
I have done that as well. That is one of the strategies we have used on my team @ work. One specific case was where we were basically being integrated into a
by aschepis 15y ago
I have done that as well. That is one of the strategies we have used on my team @ work. One specific case was where we were basically being integrated into a much larger, older component and they had their own way of doing things. Dependency injection wasn't an option. So we did a default for that case and exposed the dependencies so that we could mock them out in our tests.