Specification.

NotContains<T>(Expression<Func<T, string>>, string) Method

Summary

Creates ContainsSpecification negation for candidate property:

Checks if string not contains another string (case sensitive).

Namespace
FluentSpecification
Containing Type
Specification

Syntax

[PublicAPI]
[NotNull]
public static IComplexSpecification<T> NotContains<T>(Expression<Func<T, string>> selector, string notExpected)

Attributes

Type Description
PublicAPI
NotNull

Type Parameters

Name Description
T Type of candidate.

Parameters

Name Type Description
selector Expression<Func<T, string>> Candidate property selector.
notExpected string Not expected substring.

Return Value

Type Description
IComplexSpecification<T> Composed complex Specification.

Exceptions

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