Get() public method

Get folders for a specified collection. The collection_id/collection_key parameter means that one can use either one of them - collection_id or collection_key. User API key usage permitted. Returns only collections that have``read_data`` permission added through folder.authorize(), collection.authorize() or project.authorize().
public Get ( string projectId, string collectionId = null, string collectionKey = null ) : Task>
projectId string Project id.
collectionId string Collection id defining the collection for which folders will be returned.
collectionKey string Collection key defining the collection for which folders will be returned.
return Task>
 public async Task Get_WithNullProjectId_ThrowsException(FolderSyncanoClient client)
 {
     try
     {
         //when
         await client.Get(null, TestData.CollectionId);
         throw new Exception("Get should throw an exception");
     }
     catch (Exception e)
     {
         //then
         e.ShouldBeType<ArgumentNullException>();
     }
 }
 public async Task Get_WithInvalidProjectId_ThrowsException(FolderSyncanoClient client)
 {
     try
     {
         //when
         await client.Get("abcde", TestData.CollectionId);
         throw new Exception("Get should throw an exception");
     }
     catch (Exception e)
     {
         //then
         e.ShouldBeType<SyncanoException>();
     }
 }
        public async Task Get_ByCollectionKey(FolderSyncanoClient client)
        {
            //when
            var response = await client.Get(TestData.ProjectId, collectionKey: TestData.CollectionKey);

            //then
            response.ShouldNotBeEmpty();
            response.Any(f => f.Name == TestData.FolderName).ShouldBeTrue();
        }