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