Class CompositeSpecimenCommand
Aggregates a set of ISpecimenCommand. Executing the aggregate will trigger the execution of the parts.
Inheritance
System.Object
CompositeSpecimenCommand
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 CompositeSpecimenCommand : ISpecimenCommand
Constructors
| Improve this Doc View SourceCompositeSpecimenCommand(ISpecimenCommand[])
Initializes a new instance of CompositeSpecimenCommand class with the supplied set of commands.
Declaration
public CompositeSpecimenCommand(params ISpecimenCommand[] commands)
Parameters
Type | Name | Description |
---|---|---|
ISpecimenCommand[] | commands | The child commands. |
CompositeSpecimenCommand(IEnumerable<ISpecimenCommand>)
Initializes a new instance of CompositeSpecimenCommand class with the supplied set of commands.
Declaration
public CompositeSpecimenCommand(IEnumerable<ISpecimenCommand> commands)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<ISpecimenCommand> | commands | The child commands. |
Properties
| Improve this Doc View SourceCommands
Gets the child commands.
Declaration
public IEnumerable<ISpecimenCommand> Commands { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ISpecimenCommand> |
Methods
| Improve this Doc View SourceExecute(Object, ISpecimenContext)
Executes all child commands using a given specimen and context.
Declaration
public void Execute(object specimen, ISpecimenContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Object | specimen | The specimen on which the child commands will be executed. |
ISpecimenContext | context | The context of |