public string search(string text) { FileRequest fileRequest = new FileRequest(); fileRequest.SearchFile(text, out _, out List <Client.Request.Response.FileListResponse.File> fileList); CloudFileListVO cloudFileListVO = new CloudFileListVO(fileList); return(JsonConvert.SerializeObject(cloudFileListVO)); }
public void SearchFileTest() { UserRequest userService = new UserRequest(); userService.Login("sudodog", "ssss11111", out _); FileRequest fileRequest = new FileRequest(); fileRequest.SearchFile("1", out _, out List <Response.FileListResponse.File> fileList); Console.WriteLine("文件数: " + fileList.Count); Assert.AreEqual(fileList.Count, 140); }