Ejemplo n.º 1
0
        public double GetFinalDiscountPrice()
        {
            switch (CustomerType)
            {
            case CustomerType.PremiumCustomer:
                _discountStrategy = new PremiumDiscount();
                break;

            case CustomerType.NonPremiumCustomer:
                _discountStrategy = new NonPremiumDiscount();
                break;
            }
            return(_discountStrategy.GetDiscountedBillAount(BillAount));
        }