コード例 #1
0
 public virtual void SetUp()
 {
     string[] mappingAssemblies = RepositoryTestsHelper.GetMappingAssemblies();
     configuration = NHibernateSession.Init(new SimpleSessionStorage(), mappingAssemblies,
                                            new AutoPersistenceModelGenerator().Generate(),
                                            "../../../../app/Oxigen.Web/Web.config");
 }
コード例 #2
0
 public virtual void SetUp()
 {
     string[] mappingAssemblies = RepositoryTestsHelper.GetMappingAssemblies();
     configuration = NHibernateSession.Init(new SimpleSessionStorage(), mappingAssemblies,
                                            new AutoPersistenceModelGenerator().Generate(),
                                            "../../../../app/SharpArchitecture-MultiTenant.Web/NHibernate.config");
 }
コード例 #3
0
        public virtual void SetUp()
        {
            var mappingAssemblies = RepositoryTestsHelper.GetMappingAssemblies();

            _nhConfig = NHibernateSession.Init(new SimpleSessionStorage(), mappingAssemblies,
                                               new AutoPersistenceModelGenerator().Generate(),
                                               TEST_DB_CONFIG_PATH);
        }
コード例 #4
0
 public virtual void SetUp()
 {
     string[] mappingAssemblies = RepositoryTestsHelper.GetMappingAssemblies();
     configuration = NHibernateSession.Init(new SimpleSessionStorage(), mappingAssemblies,
                                            new AutoPersistenceModelGenerator().Generate(),
                                            "../../../../app/Freeads.Web/NHibernate.config");
     //"C:\\dz\\Source\\Oglasi\\app\\Freeads.Web\\NHibernate.config");
 }
コード例 #5
0
 public virtual void SetUp()
 {
     string[] mappingAssemblies = RepositoryTestsHelper.GetMappingAssemblies();
     this.configuration = NHibernateSession.Init(
         new SimpleSessionStorage(),
         mappingAssemblies,
         new AutoPersistenceModelGenerator().Generate(),
         "../../../../Solutions/ATPBlog.Web.Mvc/NHibernate.config");
 }
コード例 #6
0
        public virtual void SetUp()
        {
            log4net.Config.XmlConfigurator.Configure();

            string[] mappingAssemblies = RepositoryTestsHelper.GetMappingAssemblies();
            configuration = NHibernateSession.Init(new SimpleSessionStorage(), mappingAssemblies,
                                                   new AutoPersistenceModelGenerator().Generate(),
                                                   "../../../../tests/FashionAde.TestsUsingDevDatabase/Hibernate.Test.cfg.xml");
        }
コード例 #7
0
        public virtual void SetUp()
        {
            ServiceLocatorInitializer.Init();

            string[] mappingAssemblies = RepositoryTestsHelper.GetMappingAssemblies();
            _configuration = NHibernateSession.Init(new SimpleSessionStorage(), mappingAssemblies,
                                                    "../../../../app/wrms.Web/NHibernate.config");

            _timeEntryAuditRepository = new TimeEntryAuditRepository();
        }
コード例 #8
0
        public virtual void SetUp()
        {
            NHibernateSession.SessionFactory = null;
            NHibernateSession.Storage        = null;

            string[] mappingAssemblies = RepositoryTestsHelper.GetMappingAssemblies();
            NHibernateSession.Init(new SimpleSessionStorage(factoryKey), mappingAssemblies,
                                   new AutoPersistenceModelGenerator().Generate(),
                                   "../../../../app/Anuncios.Web/NHibernate.config");
        }
コード例 #9
0
        public virtual void SetUp()
        {
            var mappingAssemblies = RepositoryTestsHelper.GetMappingAssemblies();

            this.configuration = NHibernateSession.Init(
                new SimpleSessionStorage(),
                mappingAssemblies,
                new AutoPersistenceModelGenerator().Generate(),
                "../../../Northwind.Web/NHibernate.config");
        }
コード例 #10
0
        public virtual void SetUp()
        {
            string[] mappingAssemblies = RepositoryTestsHelper.GetMappingAssemblies();
            //configuration = NHibernateSession.Init(new SimpleSessionStorage(), mappingAssemblies,
            //                       new AutoPersistenceModelGenerator().Generate(),
            //                       "../../../../app/ePack.Web/NHibernate.config");

            configuration = NHibernateSession.Init(new SimpleSessionStorage(), mappingAssemblies,
                                                   new AutoPersistenceModelGenerator().Generate(),
                                                   "../../../../tests/ePack.Tests/Hibernate.cfg.xml");
        }
コード例 #11
0
        public virtual void SetUp()
        {
            string[] mappingAssemblies = RepositoryTestsHelper.GetMappingAssemblies();
            _configuration = NHibernateSession.Init(new SimpleSessionStorage(), mappingAssemblies,
                                                    "../../../../app/wrms.Web/NHibernate.config");

            NHibernateSession.AddConfiguration(DataGlobals.SDE_DB_FACTORY_KEY,
                                               mappingAssemblies,
                                               null,
                                               "../../../../app/wrms.Web/NHibernateSde.config", null, null, null);
        }
コード例 #12
0
        public virtual void SetUp()
        {
            ServiceLocatorInitializer.Init();

            string[] mappingAssemblies = RepositoryTestsHelper.GetMappingAssemblies();
            _configuration = NHibernateSession.Init(new SimpleSessionStorage(), mappingAssemblies,
                                                    "../../../../app/wrms.Web/NHibernate.config");

            _HostRepository = new HostRepository();
            //_requestRepository = new RequestRepository();
            //_wrmsSystemRepository = new WrmsSystemRepository();
        }
コード例 #13
0
        public virtual void SetUp()
        {
            string[] mappingAssemblies = RepositoryTestsHelper.GetMappingAssemblies();
            this.configuration = NHibernateSession.Init(
                new SimpleSessionStorage(),
                mappingAssemblies,
                new AutoPersistenceModelGenerator().Generate(),
                "../../../../Solutions/Gms.Web.Mvc/NHibernate.config");

            IDbConnection connection = NHibernateSession.Current.Connection;

            new SchemaExport(configuration).Execute(false, true, false, connection, null);
        }
コード例 #14
0
        public virtual void SetUp()
        {
            string[] mappingAssemblies    = RepositoryTestsHelper.GetMappingAssemblies();
            var      autoPersistenceModel = RepositoryTestsHelper.GetAutoPersistenceModel(mappingAssemblies);

            //this.configuration = NHibernateSession.Init(
            //    new SimpleSessionStorage(),
            //    mappingAssemblies,
            //    new AutoPersistenceModelGenerator().Generate(),
            //    "../../../../Solutions/QMP.Web/NHibernate.config");
            ServiceLocatorInitializer.Init();
            // RepositoryTestsHelper.InitializeNHibernateSession();
            NHibernateSession.Init(new SimpleSessionStorage(), mappingAssemblies, autoPersistenceModel, "../../../../Solutions/QMP.Web/NHibernate.config");
        }
コード例 #15
0
        public virtual void SetUp()
        {
            ServiceLocatorInitializer.Init();

            string[] mappingAssemblies = RepositoryTestsHelper.GetMappingAssemblies();
            _configuration = NHibernateSession.Init(new SimpleSessionStorage(), mappingAssemblies,
                                                    "../../../../app/wrms.Web/NHibernate.config");

            NHibernateSession.AddConfiguration(DataGlobals.SDE_DB_FACTORY_KEY,
                                               mappingAssemblies,
                                               null,
                                               "../../../../app/wrms.Web/NHibernateSde.config", null, null, null);


            _workOrderRepository = new SdeWorkOrderRepository();
            //_requestRepository = new RequestRepository();
            //_wrmsSystemRepository = new WrmsSystemRepository();
        }