DateTimeProviderSetMockDateTime Method
Sets the mock date time. This substitutes delivering the current date time from the system. Use for testing and verification.
Namespace: MoreDateTimeAssembly: MoreDateTime (in MoreDateTime.dll) Version: 1.3.0
No code example is currently available or this language may not be supported.
Parameters
- dtNow NullableDateTime
- The fixed DateTime for the Now property
- dtUtc NullableDateTime (Optional)
- The fixed DateTime for the UtcNow property, leave null to use dtNow value