Summary
Composes self Specification
with AnySpecification<T, TType>
:
Checks if ISpecification<T>
is satisfied by ANY element in candidate collection.
- Namespace
- FluentSpecification
- Containing Type
- Specification
Syntax
[PublicAPI]
[NotNull]
public static IComplexSpecification<T> Any<T, TType>(this ICompositeSpecification<T> self, ISpecification<TType> anySpecification)
where T : IEnumerable<TType>
Attributes
Type | Description |
---|---|
PublicAPI | |
NotNull |
Type Parameters
Name | Description |
---|---|
T | Collection type to iterate (IEnumerable<T> ). |
TType | Type of collection element to verify. |
Parameters
Name | Type | Description |
---|---|---|
self | I |
Self specification. |
anySpecification | ISpecification |
Specification for candidate one element. |
Return Value
Type | Description |
---|---|
I |
Composed complex Specification . |
Exceptions
Type | Description |
---|---|
System.ArgumentNullException | Thrown when self is null. |