private void SetupUnity() { var container = new UnityContainer(); container.RegisterType<IFoo, Foo>(); container.RegisterType<IBar, Bar>(new ContainerControlledLifetimeManager()); container.RegisterInGlimpse(); }