Exemple #1
0
        public void IPxApplication_GetDesign_IsNull()
        {
            TestDesign design = base.PxApplication.GetDesign((nodeID, sender) =>
            {
                Assert.Fail("The predicate function shouldn't be called.");

                var o = new TestDesign(sender, nodeID);
                return(o);
            });

            Assert.IsNull(design);
        }
Exemple #2
0
        public void IPxDesign_Initialize_IsNew_IsTrue()
        {
            DataTable table = base.PxApplication.ExecuteQuery("SELECT ID FROM " + base.PxApplication.GetQualifiedTableName(ArcFM.Process.WorkflowManager.Tables.Design));

            if (table.Rows.Count > 0)
            {
                int nodeID = table.Rows[0].Field <int>(0);
                using (TestDesign design = new TestDesign(base.PxApplication, nodeID))
                {
                    Assert.IsFalse(design.IsNew);
                }
            }
        }