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);
        }
 public static void TestClassInitialize(TestContext testContext)
 {
     _container = new DebugSessionFactoryContainer(ConfigurationManager.ConnectionStrings["PeerLearn"].ConnectionString);
     _repository = new Repository(_container.CreateSessionFactory());
     BuildTestData();
 }