basic implementation of trending articles & topics

This commit is contained in:
2018-07-02 15:56:57 +02:00
parent e6e242f7c1
commit 00b44e917e
10 changed files with 166 additions and 29 deletions
+2 -3
View File
@@ -1,4 +1,4 @@
using PocketSharp.Models;
using PocketSharp.Models;
using System.Collections.Generic;
using System.Threading.Tasks;
using Xunit;
@@ -10,8 +10,7 @@ namespace PocketSharp.Tests
{
private int Incrementor = 0;
public MiscTests()
: base()
public MiscTests() : base()
{
client.PreRequest = method => Incrementor++;
}
+29
View File
@@ -0,0 +1,29 @@
using PocketSharp.Models;
using System.Collections.Generic;
using System.Threading.Tasks;
using Xunit;
namespace PocketSharp.Tests
{
public class TrendingTests : TestsBase
{
[Fact]
public async Task AreTrendingArticlesReturned()
{
string guid = await client.GetGuid();
var articles = await client.GetTrendingArticles(guid);
Assert.NotEmpty(articles);
}
[Fact]
public async Task AreTrendingTopicsReturned()
{
string guid = await client.GetGuid();
var topics = await client.GetTrendingTopics(guid);
Assert.NotEmpty(topics);
}
}
}