Specification.

True<T>(ICompositeSpecification<T>, Expression<Func<T, bool>>) Method

Summary

Composes self Specification with TrueSpecification for candidate property:

Checks if candidate property is True.

Namespace
FluentSpecification
Containing Type
Specification

Syntax

[PublicAPI]
[NotNull]
public static IComplexSpecification<T> True<T>(this ICompositeSpecification<T> self, Expression<Func<T, bool>> selector)

Attributes

Type Description
PublicAPI
NotNull

Type Parameters

Name Description
T Type of candidate.

Parameters

Name Type Description
self ICompositeSpecification<T> Self specification.
selector Expression<Func<T, bool>> Candidate property selector.

Return Value

Type Description
IComplexSpecification<T> Composed complex Specification.

Exceptions

Type Description
System.ArgumentNullException Thrown when self or selector is null.
System.ArgumentException Thrown when selector is not valid.
GitHub