Class ConfigureFakeMembersCommand

Namespace: AutoFixture.AutoFakeItEasy
Assembly: AutoFixture.AutoFakeItEasy.dll

Sets up a Fake's members so that the return, out, and ref values of virtual members will be retrieved from the fixture, instead of being created directly by FakeItEasy.

This will setup virtual methods and properties.

public class ConfigureFakeMembersCommand : ISpecimenCommand

Inheritance

objectConfigureFakeMembersCommand

Implements

ISpecimenCommand

Inherited Members

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

Remarks

This will setup any virtual methods and properties. This includes:

  • interface's methods/properties;
  • class's abstract/virtual/overridden/non-sealed methods/properties.

Constructors

ConfigureFakeMembersCommand()

public ConfigureFakeMembersCommand()

Methods

Execute(object, ISpecimenContext)

Sets up a Fake's members so that the return, out, and ref values will be retrieved from the fixture, instead of being created directly by FakeItEasy.

public void Execute(object specimen, ISpecimenContext context)

Parameters

specimen object

The Fake to setup.

context ISpecimenContext

The context of the Fake.