public void TestFindAll() { // 测试帐号id // string accountId = "52cf89ba-7db5-4e64-9c64-3c868b6e7a99"; AjaxRequestData reqeustData = new AjaxRequestData(); reqeustData.ActionUri = new Uri(apiHostPrefix + "/api/attachment.file.findAll.aspx"); dynamic token = JsonMapper.ToDynamicObject(SecurityTokenManager.CreateSecurityToken(appKey)); reqeustData.Args.Add("clientId", token.clientId); reqeustData.Args.Add("clientSignature", token.clientSignature); reqeustData.Args.Add("timestamp", token.timestamp); reqeustData.Args.Add("nonce", token.nonce); reqeustData.Args.Add("entityId", "test_1418141958"); reqeustData.Args.Add("entityClassName", "X3Platform.AttachmentStorage.AttachmentParentObject, X3Platform.AttachmentStorage"); var responseText = AjaxRequest.Request(reqeustData); dynamic response = JsonMapper.ToDynamicObject(responseText); Assert.AreEqual(0, response.message.returnCode); }