Esempio n. 1
0
        public string Promote(string textAreaBody)
        {
            var RV = textAreaBody;

            var calculator = new RateCalculator();

            RV += "#### Customer Class Hit ####";
            RV += _NewLine;
            RV += "   I use the RateCalculator class to promote customers to GoldCustomer status";
            RV += _NewLine;
            RV += "   Promote logic processed.";
            return(RV);
        }
Esempio n. 2
0
        //

        public void AccessModifierMain()
        {
            var Customer       = new Customer();
            var GoldCustomer   = new GoldCustomer();
            var RateCalculator = new RateCalculator();

            TextAreaBody  = "";
            TextAreaBody  = "Application Start!";
            TextAreaBody += _NewLine;

            TextAreaBody  = Customer.Promote(TextAreaBody);
            TextAreaBody += _NewLine;
            TextAreaBody  = GoldCustomer.OfferVouchar(TextAreaBody);
            TextAreaBody += _NewLine;
            TextAreaBody  = RateCalculator.Calculate(Customer, TextAreaBody);
        }