Table of Contents

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 IStageResolve

Methods

Resolve(Type)

Resolves a service of the specified type from the stage context.

object? Resolve(Type serviceType)

Parameters

serviceType Type

The type of service to resolve.

Returns

object?

An instance of the requested service type, or null if the service is not registered.