Class MockType
Namespace: AutoFixture.AutoMoq
Assembly: AutoFixture.AutoMoq.dll
Contains extension methods to manipulate/setup instances of Mock%601.
public static class MockTypeInheritance
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Methods
ReturnsUsingFixture<TMock, TResult>(IReturns<TMock, TResult>, ISpecimenBuilder)
Sets up a member to lazily retrieve the return value from a fixture.
[CLSCompliant(false)]
public static IReturnsResult<TMock> ReturnsUsingFixture<TMock, TResult>(this IReturns<TMock, TResult> setup, ISpecimenBuilder fixture) where TMock : classParameters
setup IReturns<TMock, TResult>
The member setup.
fixture ISpecimenBuilder
The fixture from which the return value will be retrieved.
Returns
IReturnsResult<TMock>
The result of setting up setup to retrieve the return value from fixture.
Type Parameters
TMock
The type of the object being mocked.
TResult
The return type of the object's member being mocked.