Specification.

All<T, TType>(ICompositeSpecification<T>, ISpecification<TType>) Method

Summary

Composes self Specification with AllSpecification<T, TType>:

Checks if ISpecification<T> is satisfied by ALL elements in candidate collection.

Namespace
FluentSpecification
Containing Type
Specification

Syntax

[PublicAPI]
[NotNull]
public static IComplexSpecification<T> All<T, TType>(this ICompositeSpecification<T> self, ISpecification<TType> allSpecification) 
    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 ICompositeSpecification<T> Self specification.
allSpecification ISpecification<TType> Specification for candidate one element.

Return Value

Type Description
IComplexSpecification<T> Composed complex Specification.

Exceptions

Type Description
System.ArgumentNullException Thrown when self is null.
GitHub