static void Main(string[] args)
        {
            string queueId = "";
            // Create FreeClimbClient object
            FreeClimbClient client = new FreeClimbClient(getFreeClimbAccountId(),
                                                         getFreeClimbAccountToken());

            // Invoke getMembers method to retrieve initial list of queue member information
            QueueMemberList queueMemberList = client.getQueuesRequester.getMembers(queueId);

            // Check if list is empty by checking total size of the list
            if (queueMemberList.getTotalSize > 0)
            {
                // retrieve all queue member information from server
                while (queueMemberList.getLocalSize < queueMemberList.getTotalSize)
                {
                    queueMemberList.loadNextPage();
                }

                // Convert current pages queue information to a linked list
                LinkedList <IFreeClimbCommon> commonList = queueMemberList.export();

                // Loop through linked list to process queue member information
                foreach (IFreeClimbCommon element in commonList)
                {
                    // Cast each element to the QueueMember element for processing
                    QueueMember queueMember = element as QueueMember;
                    Console.WriteLine(queueMember.getCallId);
                }
            }
            else
            {
                Console.WriteLine("No Members in queue");
            }
        }
        public void QueueMemberListTest()
        {
            try
            {
                QueuesRequester queuesRequester = new QueuesRequester("AC736ca2078721a9a41fb47f07bf40d9e21cb304da", "8e3d1c1c519fc761856f8cc825bcfea94d8c58b5", "AC736ca2078721a9a41fb47f07bf40d9e21cb304da");

                Type       callsRequesterType     = typeof(QueuesRequester);
                MethodInfo freeClimbUrlMethodInfo = callsRequesterType.GetMethod("SetFreeClimbUrl",
                                                                                 BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic,
                                                                                 null,
                                                                                 new Type[] { typeof(System.String) },
                                                                                 null);
                freeClimbUrlMethodInfo.Invoke(queuesRequester, new Object[] { "http://QueueMemberList:3000" });

                WebRequest.RegisterPrefix("http://QueueMemberList:3000", new TestWebRequestCreate());
                TestWebRequestCreate.MockHttpWebRequestWithGivenResponseCode(HttpStatusCode.OK,
                                                                             "{\"page\": 0, \"numPages\": 2, \"pageSize\": 2, \"total\": 3, \"start\": 0, \"end\": 1, \"nextPageUri\": \"/Accounts/ACabe7063197551fe51671f9ac3a9708e9dad51c4d/Queues&cursor=492dc883a811bd0204204ea9047122f93a2788a2\", \"queueMembers\": [{\"callId\": \"CA386025c9bf5d6052a1d1ea42b4d16662\", \"dateEnqueued\": \"Mon, 11 Aug 2014 22:00:14 GMT\",\"waitTime\": 30,\"position\": 1, \"uri\": \"/Accounts/AC142c48f2ee663e214c19ea459516068c/Queues/QU5ef8732a3c49700934481addd5ce1659/Members/CA386025c9bf5d6052a1d1ea42b4d16662\"},{\"callId\": \"CA386025c9bf5d6052a1d1ea42b4d16662\", \"dateEnqueued\": \"Mon, 11 Aug 2014 22:00:14 GMT\",\"waitTime\": 30,\"position\": 1, \"uri\": \"/Accounts/AC142c48f2ee663e214c19ea459516068c/Queues/QU5ef8732a3c49700934481addd5ce1659/Members/CA386025c9bf5d6052a1d1ea42b4d16662\"}]}");

                QueueMemberList queueMemberList = queuesRequester.getMembers("QU5ef8732a3c49700934481addd5ce1659");

                Assert.IsNotNull(queueMemberList);

                Assert.AreEqual(queueMemberList.getLocalSize, 2);
                Assert.AreEqual((queueMemberList.export()).Count, 2);

                QueueMember queueMember = queueMemberList.get(0) as QueueMember;

                Assert.IsNotNull(queueMember);
                Assert.AreEqual(queueMember.getCallId, "CA386025c9bf5d6052a1d1ea42b4d16662");

                Type      type      = typeof(APIRequester);
                FieldInfo fieldInfo = type.GetField("freeClimbUrl", BindingFlags.NonPublic | BindingFlags.Instance);
                if (fieldInfo != null)
                {
                    fieldInfo.SetValue(queueMemberList, "http://QueueMemberList:3000");
                }

                TestWebRequestCreate.MockHttpWebRequestWithGivenResponseCode(HttpStatusCode.OK,
                                                                             "{\"page\": 1, \"numPages\": 2, \"pageSize\": 2, \"total\": 3, \"start\": 2, \"end\": 2, \"nextPageUri\": null, \"queueMembers\": [{\"callId\": \"CA386025c9bf5d6052a1d1ea42b4d16663\", \"dateEnqueued\": \"Mon, 11 Aug 2014 22:00:14 GMT\",\"waitTime\": 30,\"position\": 1, \"uri\": \"/Accounts/AC142c48f2ee663e214c19ea459516068c/Queues/ QU5ef8732a3c49700934481addd5ce1659/Members/CA386025c9bf5d6052a1d1ea42b4d16662\"}]}");

                queueMemberList.loadNextPage();

                Assert.IsNotNull(queueMemberList);

                Assert.AreEqual(queueMemberList.getLocalSize, 3);
                Assert.AreEqual((queueMemberList.export()).Count, 3);

                queueMember = queueMemberList.get(2) as QueueMember;

                Assert.IsNotNull(queueMember);
                Assert.AreEqual(queueMember.getCallId, "CA386025c9bf5d6052a1d1ea42b4d16663");
            }
            catch (FreeClimbException pe)
            {
                Assert.Fail(pe.Message);
            }
        }