Class FoqMethodQuery

Namespace: AutoFixture.AutoFoq
Assembly: AutoFixture.AutoFoq.dll

Selects appropriate methods to create <see cref="Foq.Mock<T>"></see> instances.

public class FoqMethodQuery : IMethodQuery

Inheritance

objectFoqMethodQuery

Implements

IMethodQuery

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

FoqMethodQuery(ISpecimenBuilder)

public FoqMethodQuery(ISpecimenBuilder builder)

Parameters

builder ISpecimenBuilder

Properties

Builder

Gets the <see cref="ISpecimenBuilder"></see>.

public ISpecimenBuilder Builder { get; }

Property Value

ISpecimenBuilder

Methods

SelectMethods(Type)

Selects methods for the supplied type.

public IEnumerable<IMethod> SelectMethods(Type targetType)

Parameters

targetType Type

The type.

Returns

IEnumerable<IMethod>

Constructors for targetType.

Remarks

This method returns a sequence of <see cref="IMethod"></see> according to the public and protected constructors available on targetType.