Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        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);
        }