C# Класс Tp.Core.CurrentDate

Current date strategy holder.
Показать файл Открыть проект

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
Setup ( System.DateTime date ) : IDisposable
Setup ( Func now = null, Func utcNow = null ) : IDisposable

Use the specified delegate to get the current date.

Описание методов

Setup() публичный статический Метод

public static Setup ( System.DateTime date ) : IDisposable
date System.DateTime
Результат IDisposable

Setup() публичный статический Метод

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
Результат IDisposable