示例#1
0
        public void Add_A_Status_Test()
        {
            // Arrange
            var text = "���Է���΢�� " + DateTime.Now.ToLongTimeString();
            var request = new QQStatusAddRequest(text) {ClientIp = IPUtility.GetFirstLocalIP()};

            // Act
            var response = WeiboClient.Post(request);

            // Assert
            Assert.IsNotNull(response);
            Assert.AreEqual("0", response.Ret);

            Console.WriteLine(response.Id);
            Console.WriteLine(response.Timestamp);
        }
示例#2
0
        public void Add_A_Status_Test()
        {
            // Arrange
            var text    = "▓Р╩ниб╦═╬б▓Е " + DateTime.Now.ToLongTimeString();
            var request = new QQStatusAddRequest(text)
            {
                ClientIp = IPUtility.GetFirstLocalIP()
            };

            // Act
            var response = WeiboClient.Post(request);

            // Assert
            Assert.IsNotNull(response);
            Assert.AreEqual("0", response.Ret);

            Console.WriteLine(response.Id);
            Console.WriteLine(response.Timestamp);
        }
示例#3
0
 /// <summary>
 /// 发送一条微博
 /// </summary>
 /// <param name="weibo">微博内容</param>
 public void SendWeibo(string weibo)
 {
     var request = new QQStatusAddRequest(weibo);
     _weiboClient.Post(request);
 }