5 ms·
The use of statics makes mocking and testing very difficult. A few thoughts on the subject: http://misko.hevery.com/2008/12/15/static-methods-are-death-to-test
by V-2 13y ago
The use of statics makes mocking and testing very difficult.
A few thoughts on the subject: http://misko.hevery.com/2008/12/15/static-methods-are-death-to-testability/ http://misko.hevery.com/2008/12/15/static-methods-are-death-...
If you use static classes for business logic, you typically end up with a tightly coupled system in which managing class dependencies is a pain.
I think that "messing around with interfaces all the time" is worth the fuss in the long run.