Add bundle backtest

This commit is contained in:
2025-07-21 17:03:27 +07:00
parent 0870edee61
commit 6f49f2659f
20 changed files with 492 additions and 132 deletions

View File

@@ -1108,4 +1108,51 @@ public static class MongoMappers
}
#endregion
#region BundleBacktestRequests
public static BundleBacktestRequestDto Map(BundleBacktestRequest domain)
{
if (domain == null) return null;
return new BundleBacktestRequestDto
{
RequestId = domain.RequestId,
User = Map(domain.User),
CompletedAt = domain.CompletedAt,
Status = domain.Status,
BacktestRequestsJson = domain.BacktestRequestsJson,
TotalBacktests = domain.TotalBacktests,
CompletedBacktests = domain.CompletedBacktests,
FailedBacktests = domain.FailedBacktests,
ErrorMessage = domain.ErrorMessage,
ProgressInfo = domain.ProgressInfo,
CurrentBacktest = domain.CurrentBacktest,
EstimatedTimeRemainingSeconds = domain.EstimatedTimeRemainingSeconds,
Name = domain.Name
};
}
public static BundleBacktestRequest Map(BundleBacktestRequestDto dto)
{
if (dto == null) return null;
return new BundleBacktestRequest
{
RequestId = dto.RequestId,
User = Map(dto.User),
CreatedAt = dto.CreatedAt,
CompletedAt = dto.CompletedAt,
Status = dto.Status,
BacktestRequestsJson = dto.BacktestRequestsJson,
TotalBacktests = dto.TotalBacktests,
CompletedBacktests = dto.CompletedBacktests,
FailedBacktests = dto.FailedBacktests,
ErrorMessage = dto.ErrorMessage,
ProgressInfo = dto.ProgressInfo,
CurrentBacktest = dto.CurrentBacktest,
EstimatedTimeRemainingSeconds = dto.EstimatedTimeRemainingSeconds,
Name = dto.Name
};
}
#endregion
}