Class MultipleRelay
Relays requests for multiple (an unspecified count) specimens to a request for a specific number of specimens.
Inheritance
System.Object
MultipleRelay
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.Kernel
Assembly: AutoFixture.dll
Syntax
public class MultipleRelay : ISpecimenBuilder
Constructors
| Improve this Doc View SourceMultipleRelay()
Initializes a new instance of the MultipleRelay class.
Declaration
public MultipleRelay()
Properties
| Improve this Doc View SourceCount
Gets or sets the count that specifies how many specimens will be requested.
Declaration
public int Count { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceCreate(Object, ISpecimenContext)
Creates many new specimens based on a request.
Declaration
public object Create(object request, ISpecimenContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Object | request | The request that describes what to create. |
ISpecimenContext | context | A context that can be used to create other specimens. |
Returns
Type | Description |
---|---|
System.Object | The requested specimens if possible; otherwise a NoSpecimen instance. |
Remarks
The number of specimens requested is determined by Count.