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 IDependencyContainerMethods
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
contextTestHostContext-
The test host context that defines the scope parameters.
Returns
- IDependencyContainerScope
-
A new Mokkit.Containers.IDependencyContainerScope for scoped service resolution.