コード例 #1
0
        public void createAndUpdateTest()
        {
            string auditEntryID = AuditEntry.create(string.Format(APIHrefs.ServerArrayById, liveTestServerArrayID), "this is a summary");

            Assert.IsNotNull(auditEntryID);
            AuditEntry ae1 = AuditEntry.show(auditEntryID);

            Assert.IsNotNull(ae1);
            bool updateResult = AuditEntry.update(auditEntryID, "this is a new summary");

            Assert.IsTrue(updateResult);
            AuditEntry ae2 = AuditEntry.show(auditEntryID);

            Assert.IsNotNull(ae2);
            Assert.AreNotEqual(ae1.summary, ae2.summary);
        }
コード例 #2
0
        public void showTest()
        {
            AuditEntry ae = AuditEntry.show(auditEntryID);

            Assert.IsNotNull(ae, "Audit Entry is null - object did not get returned properly");
        }