Exemple #1
0
        public override void Setup()
        {
            base.Setup();

            var factory = PxApplicationFactories.GetFactory(DBMS.Access);

            if (_ProductInstallation != mmProductInstallation.mmPIDesigner)
            {
                _PxApplication = factory.Open("adams", "", Path.GetFullPath(Settings.Default.SessionManager), "", false, ArcFM.Process.SessionManager.Name);
            }
            else
            {
                _PxApplication = factory.Open("adams", "", Path.GetFullPath(Settings.Default.WorkflowManager), "", false, ArcFM.Process.WorkflowManager.Name);
            }

            ((IMMPxApplicationEx2)_PxApplication).Workspace = base.Workspace;
        }
        public void PxApplicationFactories_GetFactory_SqlServer_IsNotNull()
        {
            IPxApplicationFactory factory = PxApplicationFactories.GetFactory(DBMS.SqlServer);

            Assert.IsNotNull(factory);
        }
        public void PxApplicationFactories_GetFactory_Oracle_IsNotNull()
        {
            IPxApplicationFactory factory = PxApplicationFactories.GetFactory(DBMS.Oracle);

            Assert.IsNotNull(factory);
        }
        public void PxApplicationFactories_GetFactory_NotSupportedException()
        {
            IPxApplicationFactory factory = PxApplicationFactories.GetFactory(DBMS.Unknown);

            Assert.IsNotNull(factory);
        }
        public void PxApplicationFactories_GetFactory_Access_IsNotNull()
        {
            IPxApplicationFactory factory = PxApplicationFactories.GetFactory(DBMS.Access);

            Assert.IsNotNull(factory);
        }