Replies: 1 comment 1 reply
-
The other advantage is that it allows you to mock the service for testing. This can be very valuable if you need to test logic that depends on a specific date or time. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all.
I'd like to understand what's the real purpose of IDateTime interface? The implementation for it just gives back a DateTime.Now value.
I understand this is an extra level of abstraction but wondering if it's worth in this case. What other implementations of it could we have?
Or perhaps I'm missing the point?
Thans in advance for your thoughts!
Beta Was this translation helpful? Give feedback.
All reactions