Re:Dependency injection is dynamic scoping in disguise
by glun on Thursday October 31, 2019 @02:05PM
(#21411783)
This also isn't thread safe, but that's not a problem if you don't run parallel tests in the same process. Using the same stateless test doubles in all tests also solves the problem. I often find myself wanting stateful test doubles though.
[ Parent
| on HN ]
There are no comments on this comment yet.