Class CurrentDateTimeCustomization
A customization that enables DateTime specimens to be based on the current System.DateTime.Now value.
Inheritance
System.Object
CurrentDateTimeCustomization
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AutoFixture
Assembly: AutoFixture.dll
Syntax
public class CurrentDateTimeCustomization : ICustomization
Remarks
When this customization is added to an IFixture instance, requests for DateTime specimens will be satisfied by returning the current System.DateTime.Now value.
This customization reproduces the generation strategy for DateTime specimens used in AutoFixture up to version 2.1.
Methods
| Improve this Doc View SourceCustomize(IFixture)
Customizes the specified fixture by adding the System.Type specific numeric sequence generators.
Declaration
public void Customize(IFixture fixture)
Parameters
Type | Name | Description |
---|---|---|
IFixture | fixture | The fixture to customize. |