Namespace Mokkit.Containers.Autofac
Classes
- AutofacContainer
-
Mokkit container backed by Autofac. Each Mokkit scope maps to a nested Autofac lifetime scope, and resolution delegates to Autofac (returning
nullfor unregistered services so the aggregator can fall through). - AutofacContainerBuilder
-
Builds an Mokkit.Containers.Autofac.AutofacContainer. Register components on the underlying Autofac
ContainerBuilderfrom the Mokkit.Containers.Autofac.AutofacContainerBuilder.UseInit(System.Func{Autofac.ContainerBuilder,System.Threading.Tasks.Task})/Mokkit.Containers.Autofac.AutofacContainerBuilder.UsePreInit(System.Func{Autofac.ContainerBuilder,System.Threading.Tasks.Task}) callbacks, or bridge mocks in via Mokkit.Containers.Autofac.AutofacContainerBuilder.UsePreBuild``1(System.Func{Autofac.ContainerBuilder,``0,System.Threading.Tasks.Task}) andContainerBuilder.ResolveFromStage(...). - ContainerBuilderExtensions
-
Extensions that register services to be resolved from the test stage (the shared bag) rather than from Autofac, mirroring the Microsoft DI
ResolveFromStage. Used to bridge mocks from a sibling mock container into the real graph.