namespace DependencyInjectionExampleProject
public static class AutofacExample
public static IContainer Container { get; set; }
public static IContainer Setup()
var builder = new ContainerBuilder();
Container = builder.Build();
Container.BeginLifetimeScope();