Click or drag to resize

AutoFake Constructor

Initializes a new instance of the AutoFake class.

Namespace:  Autofac.Extras.FakeItEasy
Assembly:  Autofac.Extras.FakeItEasy (in Autofac.Extras.FakeItEasy.dll) Version: 7.0.0+33b7a0dd8aef9b7b999200eb0c6cea7a45484151
Syntax
public AutoFake(
	bool strict = false,
	bool callsBaseMethods = false,
	Action<Object> configureFake = null,
	ContainerBuilder builder = null,
	Action<ContainerBuilder> configureAction = null
)

Parameters

strict (Optional)
Type: SystemBoolean
to create strict fakes. This means that any calls to the fakes that have not been explicitly configured will throw an exception.
callsBaseMethods (Optional)
Type: SystemBoolean
to delegate configured method calls to the base method of the faked method.
configureFake (Optional)
Type: SystemActionObject
Specifies an action that should be run over a fake object before it's created.
builder (Optional)
Type: AutofacContainerBuilder
The container builder to use to build the container.
configureAction (Optional)
Type: SystemActionContainerBuilder
Specifies actions that needs to be performed on the container builder, like registering additional services.
See Also