public ListFolders ( long workspaceId, PaginationParameters paging ) : PaginatedResult |
||
workspaceId | long | the workspace Id |
paging | PaginationParameters | the pagination information |
Résultat | PaginatedResult |
public virtual void TestListFolders() { server.setResponseBody("../../../TestSDK/resources/listWorkspaceFolders.json"); PaginatedResult <Folder> result = workspaceFolderResources.ListFolders(1234L, new PaginationParameters(false, 123, 117)); Assert.AreEqual(2, result.Data.Count); Assert.AreEqual(7116448184188022L, (long)result.Data[1].Id); Assert.AreEqual("https://app.smartsheet.com/b/home?lx=9sljohj8jEXqvJIbTrK2Hb", result.Data[0].Permalink); }
public virtual void TestListFolders() { server.setResponseBody("../../../TestSDK/resources/listWorkspaceFolders.json"); IList <Folder> folders = workspaceFolderResources.ListFolders(1234L); Assert.AreEqual(1, folders.Count); Assert.AreEqual(4298196408133508L, (long)folders[0].ID); Assert.AreEqual("Human Resources", folders[0].Name); }