feat(api,dal): статистика распределения. Список рабочих и выходных формируется в зависимости от времени МСК
This commit is contained in:
@@ -6,20 +6,23 @@ 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;
|
||||
}
|
||||
|
||||
int periodDays = 10;
|
||||
DateTimeOffset referenceDate = new DateTimeOffset(2025, 1, 20, 5, 0, 0, TimeSpan.Zero);
|
||||
DateTimeOffset referenceDate = new DateTimeOffset(2025, 1, 20, 3, 0, 0, TimeSpan.Zero);
|
||||
|
||||
public async Task Test()
|
||||
{
|
||||
// GetWorkDaysTESTAsync
|
||||
var aaa = await templateDistributor.GetWorkDaysTESTAsync(GetDateStart(), GetDateStart().AddDays(periodDays), true, referenceDate);
|
||||
|
||||
//await DistributeTemplatesAsync();
|
||||
//await GetValidNextRunForTemplateAsync();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user