private static IUnityContainer CreateContainer() { var container = new UnityContainer(); container.RegisterMatchingTypes(); //container.RegisterAppSettings(); //container.RegisterUnitOfWork(new PerRequestLifetimeManager()); return container; }