Exemple #1
0
        public void CopyFolderOuter()  // Copy Inside Folder (i.e Folder2) and its content to Top Level
        {
            FolderRepository uploadRepository = new FolderRepository($@"{Utils.GetSetupDir()}\UploadFolder");
            DateTime         createdTime      = uploadRepository.CopyFolder(@"Folder1\Folder2", "");
            DbRepository     dbRepository     = new DbRepository("DbFolder");

            dbRepository.CopyFolder(@"Folder1\Folder2", "", createdTime);
            List <Storage> difference = Utils.Compare(dbRepository, uploadRepository, "");

            Assert.AreEqual(0, difference.Count, "There should be no difference between repositories");
        }
Exemple #2
0
        public void CopyNewTopFolderInner() // Copy Newly created Top Folder (i.e Dutta) to Inner Folder(i.e Folder2)
        {
            CreateFolderTopLevel();
            FolderRepository uploadRepository = new FolderRepository($@"{Utils.GetSetupDir()}\UploadFolder");
            DateTime         createdTime      = uploadRepository.CopyFolder("Dutta", @"Folder1\Folder2");
            DbRepository     dbRepository     = new DbRepository("DbFolder");

            dbRepository.CopyFolder("Dutta", @"Folder1\Folder2", createdTime);
            List <Storage> difference = Utils.Compare(dbRepository, uploadRepository, "");

            Assert.AreEqual(0, difference.Count, "There should be no difference between repositories");
        }
Exemple #3
0
        public void CopyFolderInner()  // Copy Top Level Folder (i.e Folder1) and its content to Newly Created Folder(i.e Dutta)
        {
            FolderRepository uploadRepository = new FolderRepository($@"{Utils.GetSetupDir()}\UploadFolder");
            DbRepository     dbRepository     = new DbRepository("DbFolder");

            DateTime createdTime = uploadRepository.CreateFolder("", "Dutta");

            dbRepository.CreateFolder("", "Dutta", createdTime);

            createdTime = uploadRepository.CopyFolder("Folder1", "Dutta");
            dbRepository.CopyFolder(@"Folder1", @"Dutta", createdTime);

            List <Storage> difference = Utils.Compare(dbRepository, uploadRepository, "Dutta");

            Assert.AreEqual(0, difference.Count, "There should be no difference between repositories");
        }