public async Task GetTenDaysTopDiggPostsShouldSuccess() { var result = await CNBlogs.GetTenDaysTopDiggPostsAsync(); Assert.NotNull(result); Assert.True(result.Entry.Count == 5); }
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(); } } }