Пример #1
0
        public void TestPutPageAddStamp()
        {
            PdfApi target = new PdfApi(APIKEY, APPSID, BASEPATH);
            StorageApi storageApi = new StorageApi(APIKEY, APPSID, BASEPATH);

            string name = "test.pdf";
            int? pageNumber = 1;
            string storage = null;
            string folder = null;
            Com.Aspose.PDF.Model.Stamp body = new Com.Aspose.PDF.Model.Stamp();
            body.FileName = "test.pdf";
            body.Value = "new value";

            storageApi.PutCreate(name, null, null, System.IO.File.ReadAllBytes("\\temp\\pdf\\resources\\" + name));

            Com.Aspose.PDF.Model.SaaSposeResponse actual;
            actual = target.PutPageAddStamp(name, pageNumber, storage, folder, body);

            Assert.AreEqual("200", actual.Code);
            Assert.IsInstanceOfType(new Com.Aspose.PDF.Model.SaaSposeResponse(), actual.GetType());
        }