feat(dal): templateDistributor теперь распределяет с учетом московского времени

This commit is contained in:
Mikhail Trubnikov
2026-01-28 16:19:19 +10:00
parent 76bd6aa111
commit 3b7213182c
4 changed files with 70 additions and 62 deletions

View File

@@ -6,12 +6,12 @@ namespace PARR.Test.NextRun
{
internal class NextRunTest
{
private readonly ITemplateDistributor templateDistributor;
//private readonly ITemplateDistributor templateDistributor;
private readonly INextRunService nextRunService;
public NextRunTest(ITemplateDistributor templateDistributor, INextRunService nextRunService)
public NextRunTest(/*ITemplateDistributor templateDistributor, */INextRunService nextRunService)
{
this.templateDistributor = templateDistributor;
//this.templateDistributor = templateDistributor;
this.nextRunService = nextRunService;
}
@@ -21,7 +21,7 @@ namespace PARR.Test.NextRun
public async Task Test()
{
// GetWorkDaysTESTAsync
var aaa = await templateDistributor.GetWorkDaysTESTAsync(GetDateStart(), GetDateStart().AddDays(periodDays), true, referenceDate);
//var aaa = await templateDistributor.GetWorkDaysTESTAsync(GetDateStart(), GetDateStart().AddDays(periodDays), true, referenceDate);
//await DistributeTemplatesAsync();
//await GetValidNextRunForTemplateAsync();