C# Class Tp.Core.CurrentDate

Current date strategy holder.
Mostra file Open project: TargetProcess/Target-Process-Plugins

Private Properties

Property Type Description

Public Methods

Method Description
Setup ( System.DateTime date ) : IDisposable
Setup ( Func now = null, Func utcNow = null ) : IDisposable

Use the specified delegate to get the current date.

Method Details

Setup() public static method

public static Setup ( System.DateTime date ) : IDisposable
date System.DateTime
return IDisposable

Setup() public static method

Use the specified delegate to get the current date.
public static Setup ( Func now = null, Func utcNow = null ) : IDisposable
now Func New delegate, or null to reset to the .
utcNow Func set DateTime.UtcNow
return IDisposable