Class ReadonlyCollectionPropertiesSpecification
A specification that evaluates whether or not a request is for a type containing readonly properties that implement System.Collections.Generic.ICollection<T>.
Inheritance
Implements
Inherited Members
Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll
Syntax
public class ReadonlyCollectionPropertiesSpecification : IRequestSpecification
Constructors
| Improve this Doc View SourceReadonlyCollectionPropertiesSpecification()
Constructs an instance of ReadonlyCollectionPropertiesSpecification with a default query applied for selection of readonly collection properties.
Declaration
public ReadonlyCollectionPropertiesSpecification()
ReadonlyCollectionPropertiesSpecification(IPropertyQuery)
Constructs an instance of ReadonlyCollectionPropertiesSpecification, which will use the query
supplied in propertyQuery
to determine whether or not a type contains readonly collection
properties.
Declaration
public ReadonlyCollectionPropertiesSpecification(IPropertyQuery propertyQuery)
Parameters
Type | Name | Description |
---|---|---|
IPropertyQuery | propertyQuery | The query that will be applied to select readonly collection properties. |
Fields
| Improve this Doc View SourceDefaultPropertyQuery
The default query that will be applied to select readonly collection properties.
Declaration
public static readonly IPropertyQuery DefaultPropertyQuery
Field Value
Type | Description |
---|---|
IPropertyQuery |
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 SourceIsSatisfiedBy(Object)
Evaluates whether or not the request
is for a type containing readonly properties that
implement System.Collections.Generic.ICollection<T>.
Declaration
public bool IsSatisfiedBy(object request)
Parameters
Type | Name | Description |
---|---|---|
System.Object | request | The specimen request. |
Returns
Type | Description |
---|---|
System.Boolean | true if the |