Class TestingDateTimeProvider
- Namespace
- BotManager.Runtime.Utils
- Assembly
- BotManager.Runtime.dll
An implementation of IDateTimeProvider that can be used for testing. You can set Now manually and in a controlled way, so it don't return the real system time.
public sealed class TestingDateTimeProvider : IDateTimeProvider
- Inheritance
-
TestingDateTimeProvider
- Implements
- Inherited Members
Constructors
TestingDateTimeProvider()
public TestingDateTimeProvider()
Properties
Now
Gets and sets the current date time that is returned by this provider.
public DateTime Now { get; set; }