Пример #1
0
        protected string GetOpenId()
        {
            IUserListApi api      = new UserListApi(context);
            var          response = api.Execute();

            return(response.Data.OpenId[0]);
        }
Пример #2
0
        public void TestGetUserList()
        {
            IUserListApi api      = new UserListApi(context);
            var          response = api.Execute();

            Assert.IsTrue(response.Total > 0);
            Assert.IsTrue(response.Count > 0);
            Assert.IsTrue(response.Data.OpenId.Count > 0);
            Assert.AreEqual(response.Data.OpenId[response.Data.OpenId.Count - 1], response.Next_OpenId);
            Console.WriteLine(response.Data.OpenId[0]);
        }