feat(dal): NextRunService, GetNextRunForJobGroupWithAutoDistributionAsync - реализация, распределение шаблонов
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using PARR.DAL.NextRunServices.Models;
|
||||
using PARR.DAL.NextRunServices;
|
||||
using PARR.DAL.NextRunServices.Models;
|
||||
using PARR.DAL.NextRunServices.Subservices;
|
||||
|
||||
namespace PARR.Test.NextRun
|
||||
@@ -6,10 +7,12 @@ namespace PARR.Test.NextRun
|
||||
internal class NextRunTest
|
||||
{
|
||||
private readonly ITemplateDistributor templateDistributor;
|
||||
private readonly INextRunService nextRunService;
|
||||
|
||||
public NextRunTest(ITemplateDistributor templateDistributor)
|
||||
public NextRunTest(ITemplateDistributor templateDistributor, INextRunService nextRunService)
|
||||
{
|
||||
this.templateDistributor = templateDistributor;
|
||||
this.nextRunService = nextRunService;
|
||||
}
|
||||
|
||||
int periodDays = 10;
|
||||
@@ -17,8 +20,11 @@ namespace PARR.Test.NextRun
|
||||
|
||||
public async Task Test()
|
||||
{
|
||||
await DistributeTemplatesAsync();
|
||||
//await DistributeTemplatesAsync();
|
||||
//await GetValidNextRunForTemplateAsync();
|
||||
|
||||
var result = await nextRunService.GetNextRunForJobGroupWithAutoDistributionAsync(Guid.Parse("eadc5498-dba6-4f10-9b4b-a1653e3c3e61"));
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user