SpecificationCore.

AsComplexSpecification<T>(ISpecification<T>) Method

Summary

Converts Specification to complex Specification.
Namespace
FluentSpecification.Core
Containing Type
SpecificationCore

Syntax

[PublicAPI]
[NotNull]
public static IComplexSpecification<T> AsComplexSpecification<T>(this ISpecification<T> self)

Attributes

Type Description
PublicAPI
NotNull

Type Parameters

Name Description
T Type of candidate.

Parameters

Name Type Description
self ISpecification<T> Self specification.

Return Value

Type Description
IComplexSpecification<T>

Returns self when self already implement IComplexSpecification<T> interface.

Adapter object, when Specification is not "complex".

Exceptions

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