James Tombleson
bacc04ad7d
* 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.
19 lines
527 B
C#
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
|
|
});
|
|
}
|
|
} |