Added abstraction over DateTime.Now #10

wants to merge 1 commit into


None yet

2 participants

damianh commented Aug 19, 2011

Added abstraction over DateTime.Now. The SystemTime abstraction is primarily used in time sensitive acceptance tests. While NLog isn't a typical test target, it is desirable to generate log messages that match the system under test.

Example real-world usage:

Hope you accept.

Let me know if there are any problems.


damianh commented Aug 30, 2011

FWIW, a similar pull request has been accepted into RavenDB and EventStore

damianh commented Feb 2, 2015

I love wasting my time.

@damianh damianh closed this Feb 2, 2015

FWIW, thanks for pointing this out... I find it of value, and will keep this these techniques in mind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment