Esempio n. 1
0
        public void ImageGetAttachmentPageTest()
        {
            var file       = TestFiles.WithAttachmentMsg;
            var pageNumber = 1;

            var request = new ImageGetAttachmentPageRequest
            {
                FileName           = file.FileName,
                AttachmentName     = file.AttachmentName,
                PageNumber         = pageNumber,
                Format             = null,
                Width              = null,
                Height             = null,
                Quality            = null,
                Password           = null,
                AttachmentPassword = file.AttachmentPassword,
                ExtractText        = null,
                RenderComments     = null,
                RenderHiddenPages  = null,
                DefaultFontName    = null,
                FontsFolder        = null,
                Folder             = file.Folder,
                Storage            = null
            };

            var response = ViewerApi.ImageGetAttachmentPage(request);

            Assert.IsInstanceOf <System.IO.Stream>(response, "Expected response type is System.IO.Stream");
            Assert.IsTrue(response.Length > 0);
        }