Ejemplo n.º 1
0
        public void ImageGetAttachmentsFromPdfTest()
        {
            var file = TestFiles.WithAttachmentPdf;

            var request = new ImageGetAttachmentsRequest
            {
                FileName = file.FileName,
                Folder   = file.Folder,
                Storage  = null
            };

            var response = ViewerApi.ImageGetAttachments(request);

            Assert.AreEqual(1, response.Attachments.Count);
            Assert.AreEqual("password-protected.docx", response.Attachments[0].Name);
        }