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


            string name = "TestDemo.tif";
            int? frameId = 0;
            string folder = "";
            string storage = "";

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

            ImagingResponse actual;
            actual = target.GetImageFrameProperties(name, frameId, folder, storage);

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