TMDbLib/TMDbLibTests/ClientTrendingTests.cs
2021-03-27 18:03:37 +01:00

33 lines
962 B
C#

using System.Threading.Tasks;
using TMDbLib.Objects.General;
using TMDbLib.Objects.Search;
using TMDbLib.Objects.Trending;
using TMDbLibTests.JsonHelpers;
using Xunit;
namespace TMDbLibTests
{
public class ClientTrendingTests : TestBase
{
[Fact]
public async Task TestTrendingMoviesAsync()
{
SearchContainer<SearchMovie> movies = await TMDbClient.GetTrendingMoviesAsync(TimeWindow.Week);
Assert.NotEmpty(movies.Results);
}
[Fact]
public async Task TestTrendingTvAsync()
{
SearchContainer<SearchTv> tv = await TMDbClient.GetTrendingTvAsync(TimeWindow.Week);
Assert.NotEmpty(tv.Results);
}
[Fact]
public async Task TestTrendingPeopleAsync()
{
SearchContainer<SearchPerson> people = await TMDbClient.GetTrendingPeopleAsync(TimeWindow.Week);
Assert.NotEmpty(people.Results);
}
}
}