public AggregateLineExecution(IEnumerable<ILineExecution> lines) { if (lines == null || !lines.Any()) { throw new ArgumentNullException(nameof(lines)); } _lines = lines.ToArray(); Id = lines.First().Id; }