Class AutoMockPropertiesCommand

Namespace: AutoFixture.AutoMoq
Assembly: AutoFixture.AutoMoq.dll

A command that populates all public writable properties/fields of a mock object with anonymous values.

public class AutoMockPropertiesCommand : ISpecimenCommand

Inheritance

objectAutoMockPropertiesCommand

Implements

ISpecimenCommand

Inherited Members

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

Constructors

AutoMockPropertiesCommand()

public AutoMockPropertiesCommand()

Methods

Execute(object, ISpecimenContext)

Populates all public writable properties/fields of a mock object with anonymous values.

public void Execute(object specimen, ISpecimenContext context)

Parameters

specimen object

The mock object whose properties/fields will be populated.

context ISpecimenContext

The context that is used to create anonymous values.