Class Postprocessor
Performs post-processing on a created specimen.
Inherited Members
Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll
Syntax
public class Postprocessor : Postprocessor<object>, ISpecimenBuilderNode, ISpecimenBuilder, IEnumerable<ISpecimenBuilder>, IEnumerable
Constructors
| Improve this Doc View SourcePostprocessor(ISpecimenBuilder, ISpecimenCommand)
Initializes a new instance of the Postprocessor class.
Declaration
public Postprocessor(ISpecimenBuilder builder, ISpecimenCommand command)
Parameters
Type | Name | Description |
---|---|---|
ISpecimenBuilder | builder | The ISpecimenBuilder to decorate. |
ISpecimenCommand | command | The command to apply to the created specimen. |
Postprocessor(ISpecimenBuilder, ISpecimenCommand, IRequestSpecification)
Initializes a new instance of the Postprocessor class.
Declaration
public Postprocessor(ISpecimenBuilder builder, ISpecimenCommand command, IRequestSpecification specification)
Parameters
Type | Name | Description |
---|---|---|
ISpecimenBuilder | builder | The ISpecimenBuilder to decorate. |
ISpecimenCommand | command | The command to apply to the created specimen. |
IRequestSpecification | specification |
Postprocessor(ISpecimenBuilder, Action<Object, ISpecimenContext>)
Initializes a new instance of the Postprocessor class with the supplied parameters.
Declaration
[Obsolete("Use Postprocessor(ISpecimenBuilder, ISpecimenCommand) instead", true)]
public Postprocessor(ISpecimenBuilder builder, Action<object, ISpecimenContext> action)
Parameters
Type | Name | Description |
---|---|---|
ISpecimenBuilder | builder | The ISpecimenBuilder to decorate. |
System.Action<System.Object, ISpecimenContext> | action | The action to perform on the created specimen. |
Postprocessor(ISpecimenBuilder, Action<Object, ISpecimenContext>, IRequestSpecification)
Initializes a new instance of the Postprocessor class with the supplied parameters.
Declaration
[Obsolete("Use Postprocessor(ISpecimenBuilder, ISpecimenCommand, IRequestSpecification) instead", true)]
public Postprocessor(ISpecimenBuilder builder, Action<object, ISpecimenContext> action, IRequestSpecification specification)
Parameters
Type | Name | Description |
---|---|---|
ISpecimenBuilder | builder | The ISpecimenBuilder to decorate. |
System.Action<System.Object, ISpecimenContext> | action | The action to perform on the created specimen. |
IRequestSpecification | specification | A specification which is used to determine whether postprocessing should be performed for a request. |
Postprocessor(ISpecimenBuilder, Action<Object>)
Initializes a new instance of the Postprocessor class with the supplied parameters.
Declaration
[Obsolete("Use Postprocessor(ISpecimenBuilder, ISpecimenCommand) instead", true)]
public Postprocessor(ISpecimenBuilder builder, Action<object> action)
Parameters
Type | Name | Description |
---|---|---|
ISpecimenBuilder | builder | The ISpecimenBuilder to decorate. |
System.Action<System.Object> | action | The action to perform on the created specimen. |
Methods
| Improve this Doc View SourceCompose(IEnumerable<ISpecimenBuilder>)
Composes the supplied builders.
Declaration
public override ISpecimenBuilderNode Compose(IEnumerable<ISpecimenBuilder> builders)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<ISpecimenBuilder> | builders | The builders to compose. |
Returns
Type | Description |
---|---|
ISpecimenBuilderNode | A new ISpecimenBuilderNode instance containing
|