Namespace AutoFixture.AutoNSubstitute

Namespaces

AutoFixture.AutoNSubstitute.CustomCallHandler

Classes

AutoConfiguredNSubstituteCustomization

Enables auto-mocking and auto-setup with NSubstitute. Members of a substitute will be automatically setup to retrieve the return values from a fixture.

AutoNSubstituteCustomization

Enables auto-mocking with NSubstitute.

NSubstituteBuilder

Provides pre- and post-condition checks for requests for substituted instances.

NSubstituteMethodQuery

Selects appropriate methods to create substitutes.

NSubstituteRegisterCallHandlerCommand

Sets up a substitute object's methods so that the return values will be retrieved from a fixture, instead of being created directly by NSubstitute.

This will setup any void/non-void virtual methods (including property getters and generics).

NSubstituteSealedPropertiesCommand

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.

NSubstituteVirtualMethodsCommand

Sets up a substitute object's methods so that the return values will be retrieved from a fixture, instead of being created directly by NSubstitute.

This will setup any non-void virtual methods.

SubstituteAttribute

An attribute that can be applied to code elements to indicate they should be auto-generated by creating a substitute.

SubstituteAttributeRelay

Relays a request for a code element marked with the SubstituteAttribute to a SubstituteRequest of element's type.

SubstituteRelay

Relays a request for an interface or an abstract class to a request for a substitute of that type.

SubstituteRequest

Defines a request for a substitute.

SubstituteRequestHandler

Creates a substitute in response to the SubstituteRequest.