How to deal with interface overuse in TDD?

前端 未结 4 1175
不思量自难忘°
不思量自难忘° 2021-02-01 17:30

I\'ve noticed that when I\'m doing TDD it often leads to a very large amount of interfaces. For classes that have dependencies, they are injected through the constructor in the

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-01 18:11

    Don't use interfaces! Most mocking frameworks can mock concrete classes.

提交回复
热议问题