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); }
// 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); }