While INowResolver seems like overkill, sometimes tests need to fix the time to get reproducible behavior. I find using the registry is similar, as are really any external data stores or sources of info, ie random numbers too. Unit tests should never rely on external input to work correctly. MUCH easier said than done. So I get it, and I also get where you're coming from. It's certainly a shock to the system when you're used to the ease of static methods. Good luck with it!
A
al13n
@al13n
Posts
-
When to use dependency injection? -
Firefox addon that hides adsIt's called "AdBlock Plus"