コード例 #1
0
        public void TestPostChangeImageScale()
        {
            ImagingApi target = new ImagingApi(APIKEY, APPSID, BASEPATH);
            StorageApi storageApi = new StorageApi(APIKEY, APPSID, BASEPATH);


            string name = "aspose_imaging_for_cloud.png";
            string format = "jpg";
            int? newWidth = 200;
            int? newHeight = 200;
            string outPath = "";
            byte[] file = System.IO.File.ReadAllBytes("\\temp\\imaging\\resources\\" + name); 

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

            ResponseMessage actual;
            actual = target.PostChangeImageScale(format, newWidth, newHeight, outPath, file);

            Assert.AreEqual(200, actual.Code);
            Assert.IsInstanceOfType(new ResponseMessage(), actual.GetType()); 
        }