Specification.

NotMinLength<T, TProperty>(Expression<Func<T, TProperty>>, int) Method

Summary

Creates MinLengthSpecification<T> negation for candidate property:

Checks if length of candidate property is not greater than or equal to (is less than) Min value.

Namespace
FluentSpecification
Containing Type
Specification

Syntax

[PublicAPI]
[NotNull]
public static IComplexSpecification<T> NotMinLength<T, TProperty>(Expression<Func<T, TProperty>> selector, int minLength) 
    where TProperty : IEnumerable

Attributes

Type Description
PublicAPI
NotNull

Type Parameters

Name Description
T Type of candidate.
TProperty Type of candidate property to verify (collection or string).

Parameters

Name Type Description
selector Expression<Func<T, TProperty>> Candidate property selector.
minLength int Not minimum candidate property length.

Return Value

Type Description
IComplexSpecification<T> New complex Specification.

Exceptions

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