public LaboriousDetail(ProcessingTime onFirst, ProcessingTime onSecond, int number) { Number = number; OnFirst = new Detail(onFirst.A, onFirst.B, onFirst.Distribution, Number); OnSecond = new Detail(onSecond.A, onSecond.B, onSecond.Distribution, Number); }
public Detail(ProcessingTime time, int number) { if (number <= 0) { throw new ArgumentOutOfRangeException(nameof(number)); } Time = time; Number = number; }