James Tombleson
9f3a6323a6
* gave api access to the db project * added db models * working on rss extraction and meta extraction * test project to debug rsswatcherjob * added new configs for the project * new interface to define collectors * basic rss extraction and article details are now exposed * tests updated for rss pull * starting to get dapper working. Query works but insert seems to have a value issue * removed dapper from services * added some basic tests for db calls
14 lines
306 B
C#
14 lines
306 B
C#
using Newsbot.Collector.Services.Jobs;
|
|
|
|
namespace Newsbot.Collector.Tests.Jobs;
|
|
|
|
public class RssWatcherJobTest
|
|
{
|
|
[Fact]
|
|
public void CanFindItems()
|
|
{
|
|
var url = "https://www.engadget.com/rss.xml";
|
|
var client = new RssWatcherJob(url);
|
|
var items = client.Collect();
|
|
}
|
|
} |