Class UInt64SequenceGenerator
Creates a sequence of consecutive numbers, starting at 1.
Inheritance
System.Object
UInt64SequenceGenerator
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 UInt64SequenceGenerator : ISpecimenBuilder
Constructors
| Improve this Doc View SourceUInt64SequenceGenerator()
Initializes a new instance of the UInt64SequenceGenerator class.
Declaration
public UInt64SequenceGenerator()
Methods
| Improve this Doc View SourceCreate(Object, ISpecimenContext)
Creates an anonymous number.
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 | The next number in a consecutive sequence, if |
CreateAnonymous()
Creates an anonymous number.
Declaration
[CLSCompliant(false)]
[Obsolete("Please move over to using Create() as this method will be removed in the next release", true)]
public ulong CreateAnonymous()
Returns
Type | Description |
---|---|
System.UInt64 | The next number in a consecutive sequence. |