Пример #1
0
        public void FileDownloadToStreamTest()
        {
            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);
            var stream = file.FileDownloadToStream("letterlegal5.doc");

            Assert.IsTrue(stream is FileStream);
        }