Class MockSealedPropertiesCommand
Namespace: AutoFixture.AutoMoq
Assembly: AutoFixture.AutoMoq.dll
If the type of the object being mocked contains any fields and/or non-virtual/sealed settable properties, this initializer will resolve them from a given context.
[Obsolete("This class will be removed in a future version of AutoFixture. Use AutoMockPropertiesCommand instead, which will populate both sealed and overridable properties.", true)]
public class MockSealedPropertiesCommand : ISpecimenCommandInheritance
object ← MockSealedPropertiesCommand
Implements
ISpecimenCommand
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
MockSealedPropertiesCommand()
public MockSealedPropertiesCommand()Methods
Execute(object, ISpecimenContext)
If the type of the object being mocked contains any fields and/or non-virtual/sealed settable properties, this initializer will resolve them from a given context.
public void Execute(object specimen, ISpecimenContext context)Parameters
specimen object
The mock object.
context ISpecimenContext
The context.