Class SubstituteAttributeRelay
Relays a request for a code element marked with the SubstituteAttribute to a SubstituteRequest of element's type.
Inheritance
System.Object
SubstituteAttributeRelay
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.AutoNSubstitute
Assembly: AutoFixture.AutoNSubstitute.dll
Syntax
public class SubstituteAttributeRelay : ISpecimenBuilder
Methods
| Improve this Doc View SourceCreate(Object, ISpecimenContext)
Creates a relayed request based on the SubstituteAttribute applied to a code element and
resolves it from the given context
.
Declaration
public object Create(object request, ISpecimenContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Object | request | |
ISpecimenContext | context |
Returns
Type | Description |
---|---|
System.Object | A specimen resolved from the |