Class ImplementedInterfaceSpecification
A specification that determines whether the request is a request for a System.Type that implements the specified interface System.Type.
Inheritance
System.Object
ImplementedInterfaceSpecification
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AutoFixture.Kernel
Assembly: AutoFixture.dll
Syntax
public class ImplementedInterfaceSpecification : IRequestSpecification
Constructors
| Improve this Doc View SourceImplementedInterfaceSpecification(Type)
Initializes a new instance of the ImplementedInterfaceSpecification class.
Declaration
public ImplementedInterfaceSpecification(Type targetType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | targetType | The interface System.Type which the requested type should implement. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Properties
| Improve this Doc View SourceTargetType
The interface System.Type which the requested type should implement.
Declaration
public Type TargetType { get; }
Property Value
Type | Description |
---|---|
System.Type |
Methods
| Improve this Doc View SourceIsSatisfiedBy(Object)
Evaluates a request for a specimen.
Declaration
public bool IsSatisfiedBy(object request)
Parameters
Type | Name | Description |
---|---|---|
System.Object | request | The specimen request. |
Returns
Type | Description |
---|---|
System.Boolean | true if |