Newsbot.Cli/Newsbot.Tests/Clients/ArticlesClientTests.cs

20 lines
472 B
C#
Raw Permalink Normal View History

using jtom38.Newsbot.Domain.Models.Collector;
using Newsbot.Services.Collector;
namespace Newsbot.Tests.Clients;
public class ArticlesClientTests
{
[Fact]
public async Task ArticlesAreReturned()
{
var c = new ArticlesClient("http://192.168.1.225:5001");
var res = await c.ListArticles();
res ??= new List<ArticlesDto>();
if (res.Count == 0)
{
Assert.Fail("No results came back");
}
}
}