Class AndPropertyQuery
Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll
A query which is used to compose multiple IPropertyQuerys, returning only those properties
that are returned by all queries.
public class AndPropertyQuery : IPropertyQueryInheritance
Implements
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
AndPropertyQuery(params IPropertyQuery[])
Constructs an instance of AndPropertyQuery, that will select properties from specified types
that are returned by queries.
public AndPropertyQuery(params IPropertyQuery[] queries)Parameters
queries IPropertyQuery[]
The queries that should be used to select properties.
Properties
Queries
Gets the queries that are used to select properties from specified types.
public IEnumerable<IPropertyQuery> Queries { get; }Property Value
Methods
SelectProperties(Type)
Selects properties from type that are returned by Queries.
public IEnumerable<PropertyInfo> SelectProperties(Type type)Parameters
type Type
The type which properties should be selected from.
Returns
Properties belonging to type that meet Queries.