Beispiel #1
0
        public void CopySlide()
        {
            TestUtils.Upload(c_fileName, c_folderName + "/" + c_fileName);

            Model.Slides slides =
                TestUtils.SlidesApi.CopySlide(c_fileName, 3, password: c_password, folder: c_folderName);
            Assert.AreEqual(7, slides.SlideList.Count);
        }
Beispiel #2
0
        public void CopySlideFromSource()
        {
            TestUtils.Upload(c_fileName, c_folderName + "/" + c_fileName);
            TestUtils.Upload(c_sourceFileName, c_folderName + "/" + c_sourceFileName);

            Model.Slides slides = TestUtils.SlidesApi.CopySlide(c_fileName, c_slideIndex, 1,
                                                                $"{c_folderName}/{c_sourceFileName}",
                                                                password: c_password, folder: c_folderName);
            Assert.AreEqual(7, slides.SlideList.Count);
        }
Beispiel #3
0
        public void DeleteSlidesIndexes()
        {
            TestUtils.Upload(c_fileName, c_folderName + "/" + c_fileName);
            List <int> indexes = new List <int> {
                1, 3, 5
            };

            Model.Slides slides = TestUtils.SlidesApi.DeleteSlides(c_fileName, indexes, c_password, c_folderName);
            Assert.AreEqual(3, slides.SlideList.Count);
        }
Beispiel #4
0
        public void CreateSlide()
        {
            TestUtils.Upload(c_fileName, c_folderName + "/" + c_fileName);

            Model.Slides slides =
                TestUtils.SlidesApi.CreateSlide(c_fileName, c_layoutSlidePath, 1, c_password, c_folderName);
            Assert.AreEqual(7, slides.SlideList.Count);

            slides = TestUtils.SlidesApi.CreateSlide(c_fileName, password: c_password, folder: c_folderName);
            Assert.AreEqual(8, slides.SlideList.Count);
        }
Beispiel #5
0
        public void ReorderSlides()
        {
            TestUtils.Upload(c_fileName, c_folderName + "/" + c_fileName);
            List <int> oldPositions = new List <int>()
            {
                1, 2, 3, 4, 5, 6
            };
            List <int> newPositions = new List <int>()
            {
                6, 5, 4, 3, 2, 1
            };

            Model.Slides slides =
                TestUtils.SlidesApi.ReorderSlides(c_fileName, oldPositions, newPositions, c_password, c_folderName);
            Assert.AreEqual(6, slides.SlideList.Count);
        }
Beispiel #6
0
 public void MoveSlide()
 {
     TestUtils.Upload(c_fileName, c_folderName + "/" + c_fileName);
     Model.Slides slides = TestUtils.SlidesApi.MoveSlide(c_fileName, c_slideIndex, 2, c_password, c_folderName);
     Assert.AreEqual(6, slides.SlideList.Count);
 }
Beispiel #7
0
 public void GetSlides()
 {
     TestUtils.Upload(c_fileName, c_folderName + "/" + c_fileName);
     Model.Slides slides = TestUtils.SlidesApi.GetSlides(c_fileName, c_password, c_folderName);
     Assert.AreEqual(6, slides.SlideList.Count);
 }