Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }