Пример #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();
         }
     }
 }