private async Task DeleteFoldersBatch(BatchSession batch)
        {
            var service      = new DLAppService(batch);
            var repositoryId = GroupId;

            await service.DeleteFolderAsync(repositoryId, ParentFolderId, FolderName);

            await service.DeleteFolderAsync(repositoryId, ParentFolderId, FolderName2);

            var array = await batch.InvokeAsync();

            Assert.AreEqual(2, array.Count());
        }
        private async Task DeleteFolder()
        {
            var service      = new DLAppService(this.Session);
            var repositoryId = GroupId;

            await service.DeleteFolderAsync(repositoryId, ParentFolderId, FolderName);

            try
            {
                await service.GetFolderAsync(repositoryId, ParentFolderId, FolderName);

                Assert.Fail();
            }
            catch (ServerException se)
            {
                Assert.IsTrue(se.Message.StartsWith("No DLFolder exists with the key"));
            }
        }