Class DelegateGenerator
Creates new System.Delegate instances.
Inheritance
System.Object
DelegateGenerator
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 DelegateGenerator : ISpecimenBuilder
Constructors
| Improve this Doc View SourceDelegateGenerator()
Creates a new instance of the DelegateGenerator type.
Declaration
public DelegateGenerator()
DelegateGenerator(IRequestSpecification)
Creates a new instance of the DelegateGenerator type.
Declaration
public DelegateGenerator(IRequestSpecification delegateSpecification)
Parameters
Type | Name | Description |
---|---|---|
IRequestSpecification | delegateSpecification |
Properties
| Improve this Doc View SourceSpecification
The specification used to verify that request is for the supported delegate type.
Declaration
public IRequestSpecification Specification { get; }
Property Value
Type | Description |
---|---|
IRequestSpecification |
Methods
| Improve this Doc View SourceCreate(Object, ISpecimenContext)
Creates a new System.Delegate 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 | A context that can be used to create other specimens. |
Returns
Type | Description |
---|---|
System.Object | A new System.Delegate instance, if |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|