Summary
Composes self Specification
with
ContainsSpecification<T, TType>
negation for candidate property:
Checks if candidate property not contains expected element.
Syntax
[PublicAPI]
[NotNull]
public static IComplexSpecification<T> NotContains<T, TPropertyType>(this ICompositeSpecification<T> self, Expression<Func<T, IEnumerable<TPropertyType>>> selector, TPropertyType notExpected, IEqualityComparer<TPropertyType> comparer = null)
Attributes
Type |
Description |
PublicAPI |
|
NotNull |
|
Type Parameters
Name |
Description |
T |
Type of candidate. |
TPropertyType |
Type of expected element in collection. |
Parameters
Name |
Type |
Description |
self |
ICompositeSpecification<T> |
Self specification. |
selector |
Expression<Func<T, IEnumerable<TPropertyType>>> |
Candidate property selector. |
notExpected |
TPropertyType |
Not expected element in collection. |
comparer |
IEqualityComparer<TPropertyType> |
Equality comparer. |
Return Value
Exceptions
Type |
Description |
System.ArgumentNullException |
Thrown when self or selector is null. |
System.ArgumentException |
Thrown when selector is not valid. |