Class FieldRequestRelay
Relays a request for a field to a SeededRequest with a seed based on the field's name.
Inheritance
System.Object
FieldRequestRelay
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 FieldRequestRelay : ISpecimenBuilder
Methods
| Improve this Doc View SourceCreate(Object, ISpecimenContext)
Creates a new specimen based on a requested field.
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 container that can be used to create other specimens. |
Returns
Type | Description |
---|---|
System.Object | A specimen created from a SeededRequest encapsulating the field type and name of the requested field, if possible; otherwise, a NoSpecimen instance. |