MockResolutionContext class

April 20, 2021 · View on GitHub

The context used to resolve types from an AutoMocker instance.

public class MockResolutionContext

Public Members

namedescription
MockResolutionContext(…)Initializes an instance of MockResolutionContext.
AutoMocker { get; }The AutoMocker instance.
ObjectGraphContext { get; }Context within the object graph being created. This differs from the MockResolutionContext which is only relevant for a single object creation.
RequestType { get; }The requested type to resolve.
Value { get; set; }The value to use from the resolution.
Deconstruct(…)Deconstruct this instance into its individual properties.

See Also