Class OmitOnRecursionBehavior
Decorates an ISpecimenBuilder with a RecursionGuard.
Inheritance
System.Object
OmitOnRecursionBehavior
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 OmitOnRecursionBehavior : ISpecimenBuilderTransformation
Constructors
| Improve this Doc View SourceOmitOnRecursionBehavior()
Initializes new instance of the OmitOnRecursionBehavior class with default recursion depth. The default recursion depth will omit assignment on first recursion.
Declaration
public OmitOnRecursionBehavior()
OmitOnRecursionBehavior(Int32)
Initializes new instance of the OmitOnRecursionBehavior class with specific recursion depth.
Declaration
public OmitOnRecursionBehavior(int recursionDepth)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | recursionDepth | The recursion depth at which the request will be omitted. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | recursionDepth is less than one. |
Methods
| Improve this Doc View SourceTransform(ISpecimenBuilder)
Decorates the supplied ISpecimenBuilder with an RecursionGuard.
Declaration
public ISpecimenBuilderNode Transform(ISpecimenBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
ISpecimenBuilder | builder | The builder to decorate. |
Returns
Type | Description |
---|---|
ISpecimenBuilderNode |
|