public DiscountSpecification(Line line) { if (line == null) throw new System.ArgumentNullException("line", "line can't be null"); Price = line.Bike.Price; Quantity = line.Quantity; DiscountValue = DefaultDiscountCoefficient; }
public void AddLine(Line line) { _lines.Add(line); }