Class StrictlyMonotonicallyIncreasingDateTimeGenerator
Creates new System.DateTime specimens based on a incremental sequence of days.
Inheritance
System.Object
StrictlyMonotonicallyIncreasingDateTimeGenerator
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 StrictlyMonotonicallyIncreasingDateTimeGenerator : ISpecimenBuilder
Constructors
| Improve this Doc View SourceStrictlyMonotonicallyIncreasingDateTimeGenerator(DateTime)
Initializes a new instance of the StrictlyMonotonicallyIncreasingDateTimeGenerator class.
Declaration
public StrictlyMonotonicallyIncreasingDateTimeGenerator(DateTime seed)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | seed | The base System.DateTime value used to generate System.DateTime specimens. |
Methods
| Improve this Doc View SourceCreate(Object, ISpecimenContext)
Creates a new System.DateTime instance.
Declaration
public object Create(object request, ISpecimenContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Object | request | The request that describes what to create. |
ISpecimenContext | context | Not used. |
Returns
Type | Description |
---|---|
System.Object | A new System.DateTime instance, if |