Class ReadonlyCollectionPropertiesBehavior
Namespace: AutoFixture
Assembly: AutoFixture.dll
Decorates ISpecimenBuilder with a Postprocessor which invokes
ReadonlyCollectionPropertiesCommand if the specimen meets the
ReadonlyCollectionPropertiesSpecification.
public class ReadonlyCollectionPropertiesBehavior : ISpecimenBuilderTransformationInheritance
object ← ReadonlyCollectionPropertiesBehavior
Implements
ISpecimenBuilderTransformation
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
ReadonlyCollectionPropertiesBehavior()
Constructs an instance of ReadonlyCollectionPropertiesBehavior, used to decorate an
ISpecimenBuilder with a Postprocessor which invokes
ReadonlyCollectionPropertiesCommand if the specimen meets the
ReadonlyCollectionPropertiesSpecification.
public ReadonlyCollectionPropertiesBehavior()ReadonlyCollectionPropertiesBehavior(IPropertyQuery)
Constructs an instance of ReadonlyCollectionPropertiesBehavior, used to decorate an
ISpecimenBuilder with a Postprocessor which invokes
ReadonlyCollectionPropertiesCommand if the specimen meets the
ReadonlyCollectionPropertiesSpecification.
public ReadonlyCollectionPropertiesBehavior(IPropertyQuery propertyQuery)Parameters
propertyQuery IPropertyQuery
The query that will be applied to select readonly collection properties.
Properties
PropertyQuery
Gets the query used to determine whether or not a specified type has readonly collection properties.
public IPropertyQuery PropertyQuery { get; }Property Value
Methods
Transform(ISpecimenBuilder)
Decorates the supplied ISpecimenBuilder with a Postprocessor which invokes
ReadonlyCollectionPropertiesCommand if the specimen meets the
ReadonlyCollectionPropertiesSpecification.
public ISpecimenBuilderNode Transform(ISpecimenBuilder builder)Parameters
builder ISpecimenBuilder
The builder to decorate.
Returns
builder decorated with a Postprocessor.
Exceptions
Thrown if builder is null.