Class NSubstituteSealedPropertiesCommand
Namespace: AutoFixture.AutoNSubstitute
Assembly: AutoFixture.AutoNSubstitute.dll
If the type of the object being substituted contains any fields and/or non-virtual/sealed settable properties, this initializer will resolve them from a given context.
public class NSubstituteSealedPropertiesCommand : ISpecimenCommandInheritance
object ← NSubstituteSealedPropertiesCommand
Implements
ISpecimenCommand
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
NSubstituteSealedPropertiesCommand()
public NSubstituteSealedPropertiesCommand()Methods
Execute(object, ISpecimenContext)
If the type of the object being substituted 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 substitute object.
context ISpecimenContext
The context.