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); }
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); } }
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))); }