protected void BuildAndCreateTestDependencyResolver(ContainerBuilder builder)
 {
     var container = builder.Build();
     var lifetimeScopeProvider = new StubLifetimeScopeProvider(container);
     var resolver = new AutofacDependencyResolver(container, lifetimeScopeProvider);
     DependencyResolver.SetResolver(resolver);
 }
 public void SetUp()
 {
     var builder = MvcApplication.BuildIoC();
     var container = builder.Build();
     var lifetimeScopeProvider = new StubLifetimeScopeProvider(container);
     var resolver = new AutofacDependencyResolver(container, lifetimeScopeProvider);
     DependencyResolver.SetResolver(resolver);
 }