MockResolutionContext constructor

April 20, 2021 · View on GitHub

Initializes an instance of MockResolutionContext.

public MockResolutionContext(AutoMocker autoMocker, Type requestType, object? initialValue, 
    ObjectGraphContext objectGraphContext)
parameterdescription
autoMockerThe AutoMocker instance.
requestTypeThe requested type to resolve.
initialValueThe initial value to use.
objectGraphContextContext within the object graph being created. This differs from the MockResolutionContext which is only relevant for a single object creation.

See Also