Newsbot.Collector/Newsbot.Collector.Tests/Jobs/YoutubeWatcherJobTests.cs
James Tombleson bacc04ad7d
Features/enabling youtube (#24)
* Adding a youtube controller to trigger the job

* Renamed jobs controller to rss

* cleaned up background jobs and added youtube to the startup.

* Handled merge issues and validated things are still working.
2023-04-08 09:30:59 -07:00

19 lines
527 B
C#

using Microsoft.Extensions.Configuration;
using Newsbot.Collector.Domain.Consts;
using Newsbot.Collector.Services.Jobs;
namespace Newsbot.Collector.Tests.Jobs;
public class YoutubeWatcherJobTests
{
[Fact]
public void InitTest()
{
var client = new YoutubeWatcherJob();
client.InitAndExecute(new YoutubeWatcherJobOptions
{
DatabaseConnectionString = TestHelper.LoadConfig().GetValue<string>(ConfigConst.ConnectionStringDatabase),
SleepTimer = 1000
});
}
}