public static void Start() { var container = new UnityContainer(); GlobalConfiguration.Configuration.DependencyResolver = new UnityDependencyResolver(container); RegisterSettings.Register(container); ConfigureNHibernate.Configure(container); RegisterRepositories.Register(container); }