Class NullRecursionBehavior
Decorates a ISpecimenBuilder with a RecursionGuard with NullRecursionHandler.
Inheritance
System.Object
NullRecursionBehavior
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 NullRecursionBehavior : ISpecimenBuilderTransformation
Constructors
| Improve this Doc View SourceNullRecursionBehavior()
Initializes new instance of the NullRecursionBehavior class with default recursion depth. The default recursion depth will cause null assignment on first recursion.
Declaration
public NullRecursionBehavior()
NullRecursionBehavior(Int32)
Initializes new instance of the NullRecursionBehavior class with specific recursion depth.
Declaration
public NullRecursionBehavior(int recursionDepth)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | recursionDepth | The recursion depth at which the request will be assigned null. |
Methods
| Improve this Doc View SourceTransform(ISpecimenBuilder)
Decorates the supplied ISpecimenBuilder with a RecursionGuard with NullRecursionHandler.
Declaration
public ISpecimenBuilderNode Transform(ISpecimenBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
ISpecimenBuilder | builder | The builder to decorate. |
Returns
Type | Description |
---|---|
ISpecimenBuilderNode |
|