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


            string name = "sample.bmp";
            int? bitsPerPixel = 24;
            int? horizontalResolution = 300;
            int? verticalResolution = 300;
            bool? fromScratch = null;
            string outPath = "";
            string folder = "";
            string storage = "";
             storageApi.PutCreate(name, null, null, System.IO.File.ReadAllBytes("\\temp\\imaging\\resources\\" + name)); 
            ResponseMessage actual;
            actual = target.GetImageBmp(name, bitsPerPixel, horizontalResolution, verticalResolution, fromScratch, outPath, folder, storage);
            Assert.AreEqual(200, actual.Code);
            Assert.IsInstanceOfType(new ResponseMessage(), actual.GetType()); 
        }