Property SystemClock
SystemClock
Sets or returns an implementation of IAfterPaySystemClock that will be used by the library to determine the current date and time.
Declaration
public static IAfterPaySystemClock SystemClock { get; set; }
Property Value
Type | Description |
---|---|
IAfterPaySystemClock |
Remarks
If not clock is explicitly set, or if the property is set to null, then DefaultInstance will be used (and returned as the current value of the property).
This property can be used to provide a mocked clock for unit testing, or to provide a clock adjusted by a calculated offset via an NTP client etc. if the system clock cannot be relied upon for accuracy.
This is a static property and the value set here affects all clients/objects from the Yort.AfterPay.InStore API unless otherwise specified.