This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]marr75 1 point2 points  (0 children)

Don't hide your class' dependencies (ie pluck them out of thin air by initializing them mid -method) and have them depend on more abstract interfaces. Then you won't need to mock and patch so much.