public void TestPostSlidesDocument() { SlidesApi target = new SlidesApi(APIKEY, APPSID, BASEPATH); StorageApi storageApi = new StorageApi(APIKEY, APPSID, BASEPATH); string name = "slide_"+ new Random().Next(100) +".pptx"; string templatePath = "test_slide.pptx"; string templateStorage = null; bool? isImageDataEmbeeded = false; string password = null; string storage = null; string folder = null; byte[] file = System.IO.File.ReadAllBytes("\\temp\\slides\\resources\\" + "test.html"); storageApi.PutCreate(templatePath, null, null, System.IO.File.ReadAllBytes("\\temp\\slides\\resources\\" + templatePath)); ResponseMessage actual; actual = target.PostSlidesDocument(name, templatePath, templateStorage, isImageDataEmbeeded, password, storage, folder, file); Assert.AreEqual("Created", actual.Status); Assert.IsInstanceOfType(new Com.Aspose.Slides.Model.ResponseMessage(), actual.GetType()); }