protected void Application_Start() { NHibernateUtility utility = new NHibernateUtility(); utility.Initialize(); AreaRegistration.RegisterAllAreas(); RouteConfig.RegisterRoutes(RouteTable.Routes); }
public void TestInit() { ServiceFactory.UserService = new UserService(); ServiceFactory.MessageService = new MessageService(); ServiceFactory.CommentService = new CommentService(); var utility = new NHibernateUtility(); utility.Initialize(); }
public void Init() { var utility = new NHibernateUtility(); utility.Initialize(); }