public void LayoutSlideDeleteUnused() { TestUtils.Upload(c_fileName, c_folderName + "/" + c_fileName); LayoutSlides layoutSlidesBefore = TestUtils.SlidesApi.GetLayoutSlides(c_fileName, c_password, c_folderName); Assert.AreEqual(c_slidesCount, layoutSlidesBefore.SlideList.Count); LayoutSlides layoutSlidesAfter = TestUtils.SlidesApi.DeleteUnusedLayoutSlides(c_fileName, c_password, c_folderName); Assert.AreEqual(2, layoutSlidesAfter.SlideList.Count); }
public void LayoutSlides() { const string sourceFile = "TemplateCV.pptx"; string sourcePath = c_folderName + "/" + sourceFile; TestUtils.Upload(c_fileName, c_folderName + "/" + c_fileName); TestUtils.Upload(sourceFile, sourcePath); LayoutSlides layoutSlides = TestUtils.SlidesApi.GetLayoutSlides(c_fileName, c_password, c_folderName); Assert.AreEqual(11, layoutSlides.SlideList.Count); LayoutSlide layoutSlide = TestUtils.SlidesApi.GetLayoutSlide(c_fileName, 1, c_password, c_folderName); Assert.AreEqual("Title Slide", layoutSlide.Name); layoutSlide = TestUtils.SlidesApi.CopyLayoutSlide( c_fileName, sourcePath, 2, password: c_password, folder: c_folderName); Assert.AreEqual("Title and Content", layoutSlide.Name); layoutSlides = TestUtils.SlidesApi.GetLayoutSlides(c_fileName, c_password, c_folderName); Assert.AreEqual(12, layoutSlides.SlideList.Count); }