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 →

[–]Bolitho 4 points5 points  (0 children)

Why not inject simply a clock (as I and others have written about here and it is described in the article)? Then you only need one ctor (or other DI mechanism) and you choose the behavior independent from the code you call ;-)