MockResolutionContext constructor
April 20, 2021 · View on GitHub
Initializes an instance of MockResolutionContext.
public MockResolutionContext(AutoMocker autoMocker, Type requestType, object? initialValue,
ObjectGraphContext objectGraphContext)
| parameter | description |
|---|---|
| autoMocker | The AutoMocker instance. |
| requestType | The requested type to resolve. |
| initialValue | The initial value to use. |
| objectGraphContext | Context within the object graph being created. This differs from the MockResolutionContext which is only relevant for a single object creation. |
See Also
- class AutoMocker
- class ObjectGraphContext
- class MockResolutionContext
- namespace Moq.AutoMock.Resolvers