Click or drag to resize

DateTimeNowHelper Class

Helper class for getting DateTime.Now (and similar). Enables mocking DateTime.Now in unit tests.
Inheritance Hierarchy
SystemObject
  Omada.OE.Solution.OIM.AppLogic.Integration.HelpersDateTimeNowHelper

Namespace:  Omada.OE.Solution.OIM.AppLogic.Integration.Helpers
Assembly:  Omada.OE.Solution.OIM.AppLogic (in Omada.OE.Solution.OIM.AppLogic.dll) Version: 15.0.0.0
Syntax
C#
public class DateTimeNowHelper : IDateTimeNowHelper

The DateTimeNowHelper type exposes the following members.

Constructors
  NameDescription
Public methodDateTimeNowHelper
Top
Methods
  NameDescription
Public methodGetUtcNow
Returns DateTime.UtcNow
Top
Extension Methods
  NameDescription
Public Extension MethodToBool
Converts object to boolean.
(Defined by ObjectExtensions.)
Public Extension MethodToDateTime
Converts object to DateTime.
(Defined by ObjectExtensions.)
Public Extension MethodToInt
Converts object to integer.
(Defined by ObjectExtensions.)
Top
See Also