Class SpecimenContext
Default implementation of ISpecimenContext.
Inheritance
System.Object
SpecimenContext
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 SpecimenContext : ISpecimenContext
Constructors
| Improve this Doc View SourceSpecimenContext(ISpecimenBuilder)
Initializes a new instance of SpecimenContext with the supplied ISpecimenBuilder.
Declaration
public SpecimenContext(ISpecimenBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
ISpecimenBuilder | builder | The builder that will handle requests. |
Properties
| Improve this Doc View SourceBuilder
Gets the ISpecimenBuilder contained by the instance.
Declaration
public ISpecimenBuilder Builder { get; }
Property Value
Type | Description |
---|---|
ISpecimenBuilder |
Methods
| Improve this Doc View SourceResolve(Object)
Creates an anonymous variable (specimen) based on a request by delegating the request to its contained Builder.
Declaration
public object Resolve(object request)
Parameters
Type | Name | Description |
---|---|---|
System.Object | request | The request that describes what to create. |
Returns
Type | Description |
---|---|
System.Object | The result of a request to the contained Builder. |