public BasicTariff(string name, decimal monthlyPrice, decimal pricePerUnit) : base(name) { var monthlyFee = new ReoccuringFixedPriceFee(monthlyPrice, Occurences.Monthly); var consumptionFee = new FixedConsumptionFee(pricePerUnit); Fees.Add(monthlyFee); Fees.Add(consumptionFee); }
public PackagedTariff(string name, decimal annualPrice, decimal pricePerUnit, decimal consumptionThreshold) : base(name) { var consumptionFee = new ConsumptionBoundaryFee(pricePerUnit, consumptionThreshold, Decimal.MaxValue); var annualFee = new ReoccuringFixedPriceFee(annualPrice, Occurences.Yearly); Fees.Add(consumptionFee); Fees.Add(annualFee); }