Interface IStageResolve
- Namespace
- Mokkit.Containers
- Assembly
- Mokkit.dll
Provides service resolution capabilities within a test stage context, backed by the shared test host bag. DI container adapters register an implementation so services can be resolved from mocks (or other stage-provided instances) deposited into the bag by sibling containers.
public interface IStageResolveMethods
Resolve(Type)
Resolves a service of the specified type from the stage context.
object? Resolve(Type serviceType)Parameters
serviceTypeType-
The type of service to resolve.
Returns
- object?
-
An instance of the requested service type, or
nullif the service is not registered.