Table of Contents

Namespace Mokkit.Containers

Namespaces

Mokkit.Containers.Autofac
Mokkit.Containers.Bag
Mokkit.Containers.CastleWindsor
Mokkit.Containers.Common
Mokkit.Containers.FakeItEasy
Mokkit.Containers.Moq
Mokkit.Containers.NSubstitute

Classes

BaseDependencyContainer

Provides a base implementation for dependency injection containers. This abstract class serves as a foundation for concrete container implementations, providing common functionality and establishing the contract for derived classes.

StageResolve

Resolves services from the test host bag. DI container adapters register this as their Mokkit.Containers.IStageResolve implementation so stage-provided instances (e.g. mocks) can be injected into the real graph.

Interfaces

IDependencyContainer

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

IDependencyContainerBuilder

Defines the contract for building dependency injection containers with a multiphase initialization lifecycle. This interface supports a structured build process: PreInit → Init → PreBuild → Build.

IDependencyContainerScope

Represents a scoped dependency injection container that provides service resolution within a specific scope. This interface extends System.IDisposable to ensure proper cleanup of scoped resources.

IStageResolve

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.