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());
        }
        public async Task TestAddFoldersBatch()
        {
            var batch = new BatchSession(this.Session);

            var service      = new DLAppService(batch);
            var repositoryId = GroupId;

            await service.AddFolderAsync(repositoryId, ParentFolderId, FolderName, string.Empty, null);

            await service.AddFolderAsync(repositoryId, ParentFolderId, FolderName2, string.Empty, null);

            var array = await batch.InvokeAsync();

            Assert.AreEqual(FolderName, array.ElementAt(0).name);
            Assert.AreEqual(FolderName2, array.ElementAt(1).name);

            await this.DeleteFoldersBatch(batch);
        }