feat(dal): NextRunService, GetNextRunForJobGroupWithAutoDistributionAsync - реализация, распределение шаблонов

This commit is contained in:
Mikhail Trubnikov
2026-01-21 12:19:27 +10:00
parent eb5bed5614
commit 5ad26742e6
4 changed files with 162 additions and 10 deletions

View File

@@ -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>