Class DirectBaseTypeSpecification
A specification that determines whether the request is a request for a System.Type that directly inherits from the specified System.Type.
Inheritance
System.Object
DirectBaseTypeSpecification
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 DirectBaseTypeSpecification : IRequestSpecification
Constructors
| Improve this Doc View SourceDirectBaseTypeSpecification(Type)
Initializes a new instance of the DirectBaseTypeSpecification class.
Declaration
public DirectBaseTypeSpecification(Type targetType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | targetType | The System.Type from which the requested type should directly inherit. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Properties
| Improve this Doc View SourceTargetType
The System.Type from which the requested type should directly inherit.
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 |