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;
        }
Example #2
0
 public void AddLine(Line line)
 {
     _lines.Add(line);
 }