Newsbot.Collector/Newsbot.Collector.Tests/Jobs/YoutubeWatcherJobTests.cs

19 lines
527 B
C#
Raw Normal View History

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
});
}
}