예제 #1
0
        public async Task GetTenDaysTopDiggPostsShouldSuccess()
        {
            var result = await CNBlogs.GetTenDaysTopDiggPostsAsync();

            Assert.NotNull(result);
            Assert.True(result.Entry.Count == 5);
        }
예제 #2
0
 private void SetNewStatus(CNBlogs.DataHelper.DataModel.Post post, CNBlogs.DataHelper.DataModel.PostStatus newStatus, bool updateUI = true)
 {
     if (post.Status != newStatus)
     {
         if (post.Status <= newStatus)
         {
             post.Status = newStatus;
             DataHelper.DataModel.CNBlogSettings.Instance.SaveBlogStatus(post);
         }
         if (updateUI)
         {
             this.UpdateUI();
         }
     }
 }