Table of Contents

Interface IDependencyContainer

Namespace
Mokkit.Containers
Assembly
Mokkit.dll

Represents a dependency injection container that provides scoped service resolution. This interface abstracts the underlying dependency injection implementation and allows for pluggable container architectures.

public interface IDependencyContainer

Methods

BeginScope(TestHostContext)

Creates a new dependency injection scope within the specified test host context. The scope provides isolated service resolution for the duration of a test operation.

IDependencyContainerScope BeginScope(TestHostContext context)

Parameters

context TestHostContext

The test host context that defines the scope parameters.

Returns

IDependencyContainerScope

A new Mokkit.Containers.IDependencyContainerScope for scoped service resolution.