public void Query() { kt_folder_contents response = this._kt.get_folder_contents(this._session, 1, 1, "DF"); Assert.AreEqual(0, response.status_code); Assert.AreEqual(2, response.items.Length); Assert.AreEqual(this._doc1.docId, response.items[1].id); Assert.AreEqual("n/a", response.items[1].custom_document_no); Assert.AreEqual("n/a", response.items[1].oem_document_no); Assert.AreEqual("D", response.items[1].item_type); Assert.AreEqual(this._doc1.title, response.items[1].title); Assert.AreEqual(this._doc1.realFilename, response.items[1].filename); Assert.AreEqual("Default", response.items[1].document_type); Assert.AreEqual(this._doc1.filesize + 1 + "", response.items[1].filesize); Assert.AreEqual("Administrator", response.items[1].created_by); Assert.AreEqual("Administrator", response.items[1].modified_by); Assert.AreEqual("n/a", response.items[1].checked_out_by); Assert.AreEqual("Administrator", response.items[1].owned_by); Assert.AreEqual("0.1", response.items[1].version); Assert.AreEqual("false", response.items[1].is_immutable); Assert.AreEqual("RW", response.items[1].permissions); Assert.AreEqual("n/a", response.items[1].workflow); Assert.AreEqual("n/a", response.items[1].workflow_state); Assert.AreEqual("text/plain", response.items[1].mime_type); Assert.AreEqual("text", response.items[1].mime_icon_path); Assert.AreEqual("Plain Text", response.items[1].mime_display); Assert.IsTrue("" != response.items[1].storage_path); Assert.AreEqual(this._folderId, response.items[0].id); Assert.AreEqual("F", response.items[0].item_type); Assert.AreEqual("kt_unit_testabc", response.items[0].title); Assert.AreEqual("kt_unit_testabc", response.items[0].filename); Assert.AreEqual("n/a", response.items[0].document_type); Assert.AreEqual("n/a", response.items[0].filesize); Assert.AreEqual("Administrator", response.items[0].created_by); Assert.AreEqual("n/a", response.items[0].modified_by); Assert.AreEqual("n/a", response.items[0].checked_out_by); Assert.AreEqual("n/a", response.items[0].owned_by); Assert.AreEqual("n/a", response.items[0].version); Assert.AreEqual("n/a", response.items[0].is_immutable); Assert.AreEqual("RWA", response.items[0].permissions); Assert.AreEqual("n/a", response.items[0].workflow); Assert.AreEqual("n/a", response.items[0].workflow_state); Assert.AreEqual("folder", response.items[0].mime_type); Assert.AreEqual("folder", response.items[0].mime_icon_path); Assert.AreEqual("Folder", response.items[0].mime_display); Assert.AreEqual("n/a", response.items[0].storage_path); }
public void GetFolderContents() { kt_folder_contents response = this._kt.get_folder_contents(this._session, this._folder_id, 1, "DF"); Assert.AreEqual(0, response.status_code); Assert.AreEqual(this._folder_id, response.folder_id); Assert.AreEqual("kt_unit_test", response.folder_name); Assert.AreEqual("kt_unit_test", response.full_path); kt_folder_contents response2 = this._kt.get_folder_contents(this._session, this._subfolder_id, 1, "DF"); Assert.AreEqual(0, response2.status_code); Assert.AreEqual(this._subfolder_id, response2.folder_id); Assert.AreEqual("subfolder", response2.folder_name); Assert.AreEqual("kt_unit_test/subfolder", response2.full_path); }