Class ReadonlyCollectionPropertiesBehavior
Decorates ISpecimenBuilder with a Postprocessor which invokes ReadonlyCollectionPropertiesCommand if the specimen meets the ReadonlyCollectionPropertiesSpecification.
Inheritance
Implements
Inherited Members
Namespace: AutoFixture
Assembly: AutoFixture.dll
Syntax
public class ReadonlyCollectionPropertiesBehavior : ISpecimenBuilderTransformation
Constructors
| Improve this Doc View SourceReadonlyCollectionPropertiesBehavior()
Constructs an instance of ReadonlyCollectionPropertiesBehavior, used to decorate an ISpecimenBuilder with a Postprocessor which invokes ReadonlyCollectionPropertiesCommand if the specimen meets the ReadonlyCollectionPropertiesSpecification.
Declaration
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.
Declaration
public ReadonlyCollectionPropertiesBehavior(IPropertyQuery propertyQuery)
Parameters
Type | Name | Description |
---|---|---|
IPropertyQuery | propertyQuery | The query that will be applied to select readonly collection properties. |
Properties
| Improve this Doc View SourcePropertyQuery
Gets the query used to determine whether or not a specified type has readonly collection properties.
Declaration
public IPropertyQuery PropertyQuery { get; }
Property Value
Type | Description |
---|---|
IPropertyQuery |
Methods
| Improve this Doc View SourceTransform(ISpecimenBuilder)
Decorates the supplied ISpecimenBuilder with a Postprocessor which invokes ReadonlyCollectionPropertiesCommand if the specimen meets the ReadonlyCollectionPropertiesSpecification.
Declaration
public ISpecimenBuilderNode Transform(ISpecimenBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
ISpecimenBuilder | builder | The builder to decorate. |
Returns
Type | Description |
---|---|
ISpecimenBuilderNode |
|
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown if |