Beispiel #1
0
        public virtual void testEmployee()
        {
            Assert.IsFalse(sc.removeEmployee(employee));
            Assert.AreEqual(sc.addEmployee(employee),1);
            Assert.IsTrue(sc.removeEmployee(employee));
            Assert.AreEqual(sc.addEmployee(employee),1);

            JDFDoc        docJMF     = sc.getDocJMFPhaseTime();
            JDFResponse   sig        = (JDFResponse)docJMF.getJMFRoot().getMessageElement(EnumFamily.Response,EnumType.Status,-1);
            JDFDeviceInfo deviceInfo = sig.getDeviceInfo(0);

            Assert.IsTrue(deviceInfo.getEmployee(0).isEqual(employee));
            sc.removeEmployee(employee);
            docJMF     = sc.getDocJMFPhaseTime();
            sig        = (JDFResponse)docJMF.getJMFRoot().getMessageElement(EnumFamily.Response,EnumType.Status,0);
            deviceInfo = sig.getDeviceInfo(0);
            Assert.IsNull(deviceInfo.getEmployee(0));
        }