public void TestRemoveFolder() { var employer = _employerAccountsCommand.CreateTestEmployer(1, _organisationsCommand.CreateTestOrganisation(0)); LogIn(employer); Get(GetFoldersUrl()); // Add some folders. var folders = new FolderModel[3]; for (var index = 0; index < 3; ++index) { var name = string.Format(FolderNameFormat, index); folders[index] = NewFolder(name, false).Folder; } // Remove a folder. DeleteFolder(folders[1].Id); folders = folders.Take(1).Concat(folders.Skip(2).Take(1)).ToArray(); Get(GetFoldersUrl()); var privateFolders = (from f in folders select _candidateFoldersQuery.GetFolder(employer, f.Id)).ToList(); privateFolders.Add(GetMobileFolder(employer)); AssertFolders(employer, _candidateFoldersQuery.GetShortlistFolder(employer), privateFolders.ToArray(), new CandidateFolder[0]); }