Interface IRequestSpecification

Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll

A Specification that evaluates requests.

public interface IRequestSpecification

Remarks

This is a codification of the Specification patter for requests. This interface can (and should) be used in any place where you need to filter requests for specimens.

Methods

IsSatisfiedBy(object)

Evaluates a request for a specimen.

bool IsSatisfiedBy(object request)

Parameters

request object

The specimen request.

Returns

bool

true if request is satisfied by the Specification; otherwise, false.