예제 #1
0
        public async Task DeleteSharedFolderReturnsFolderWrapperReadAndWrite(bool deleteAfter, bool immediately)
        {
            SecurityContext.AuthenticateMe(NewUser.ID);

            var result = FilesControllerHelper.DeleteFolder(
                TestFolderReadAndWrite.Id,
                deleteAfter,
                immediately)
                         .FirstOrDefault();

            await WaitLongOperation(result, FilesCommonResource.ErrorMassage_SecurityException_DeleteFolder);
        }
예제 #2
0
        public void DeleteFolder(int folder)
        {
            FilesControllerHelper.DeleteFolder(folder, false, true);
            while (true)
            {
                var statuses = FileStorageService.GetTasksStatuses();

                if (statuses.TrueForAll(r => r.Finished))
                {
                    break;
                }
                Thread.Sleep(100);
            }
        }
예제 #3
0
        public void DeleteFolderReturnsFolderWrapper(bool deleteAfter, bool immediately)
        {
            FilesControllerHelper.DeleteFolder(TestFolder.Id, deleteAfter, immediately);
            while (true)
            {
                var statuses = FileStorageService.GetTasksStatuses();

                if (statuses.TrueForAll(r => r.Finished))
                {
                    break;
                }
                Thread.Sleep(100);
            }
            Assert.IsTrue(FileStorageService.GetTasksStatuses().TrueForAll(r => string.IsNullOrEmpty(r.Error)));
        }