Esempio n. 1
0
        public void FileUploadTest()
        {
            var apiKey = new Dictionary <string, string>()
            {
                { "AppSecret", "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" },
                { "AppId", "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" }
            };

            var config = new Configuration(apiKey: apiKey);

            config.ApiClient = new ApiClient(config);

            var file = new FileApi(config);

            file.FileUploadPost("letterlegal5.doc", File.Open("D://Temp/letterlegal5.doc", FileMode.Open));

            var result = file.FileList();

            Assert.IsTrue(result.Contains("letterlegal5.doc"));
        }