Пример #1
0
        public void createAndAppendTest()
        {
            string auditEntryID = AuditEntry.create(string.Format(APIHrefs.ServerArrayById, liveTestServerArrayID), "this is a summary", "here are some details");

            Assert.IsNotNull(auditEntryID);
            string detailResults1 = AuditEntry.detail(auditEntryID);

            Assert.IsNotNull(detailResults1);
            bool appendResult = AuditEntry.append(auditEntryID, "this is a more audit detail", "1");

            Assert.IsTrue(appendResult);
            string detailResults2 = AuditEntry.detail(auditEntryID);

            Assert.IsNotNull(detailResults2);
            Assert.AreNotEqual(detailResults1, detailResults2);
        }