refactor(dotnet): externalize scheduler definitions
This commit is contained in:
@@ -4,6 +4,7 @@ using System.Reflection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Options;
|
||||
using Hangfire;
|
||||
using Hangfire.Common;
|
||||
using QuantEngine.Web.Services;
|
||||
@@ -33,7 +34,8 @@ public class SchedulerServiceTests
|
||||
recurringJobManagerMock.Object,
|
||||
scopeFactoryMock.Object,
|
||||
configMock.Object,
|
||||
parser
|
||||
parser,
|
||||
Options.Create(new SchedulerServiceOptions())
|
||||
);
|
||||
|
||||
// Act
|
||||
@@ -198,7 +200,8 @@ public class SchedulerServiceTests
|
||||
recurringJobManagerMock.Object,
|
||||
scopeFactoryMock.Object,
|
||||
configMock.Object,
|
||||
new GatherTradingDataParser()
|
||||
new GatherTradingDataParser(),
|
||||
Options.Create(new SchedulerServiceOptions())
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user