public static void RegisterServices(IKernel kernel) { var passwordHelper = new PasswordHelper(); passwordHelper.Initialize(); var repository = new Repository( new ProductionSessionFactoryContainer( ConfigurationManager.ConnectionStrings["PeerLearn"]. ConnectionString).CreateSessionFactory()); kernel.Bind<IRepository>().ToConstant(repository); kernel.Bind<IEventService>().To<EventService>(); kernel.Bind<IFormsAuthenticationService>().To<FormsAuthenticationService>(); kernel.Bind<PasswordHelper>().ToConstant(passwordHelper); }