Class ByteSequenceGenerator
Creates a sequence of consecutive numbers, starting at 1.
Inheritance
System.Object
ByteSequenceGenerator
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 ByteSequenceGenerator : ISpecimenBuilder
Constructors
| Improve this Doc View SourceByteSequenceGenerator()
Initializes a new instance of the ByteSequenceGenerator class.
Declaration
public ByteSequenceGenerator()
Methods
| Improve this Doc View SourceCreate()
Creates an anonymous number.
Declaration
[Obsolete("Please use the Create(request, context) method as this overload will be removed to make API uniform.")]
public byte Create()
Returns
Type | Description |
---|---|
System.Byte | The next number in a consecutive sequence. |
Create(Object, ISpecimenContext)
Creates an anonymous byte.
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 byte in a consecutive sequence, if |
CreateAnonymous()
Creates an anonymous number.
Declaration
[Obsolete("Please move over to using Create() as this method will be removed in the next release", true)]
public byte CreateAnonymous()
Returns
Type | Description |
---|---|
System.Byte | The next number in a consecutive sequence. |
Remarks
Obsolete: Please move over to using Create() as this method will be removed in the next release.