public string GetMyComputerPrice(IPriceCalculation cmpCal, IComputerPrice cmpPrice) { var myCompprice = "El Precio es : " + cmpCal.CalculatePriceAfterTax(cmpPrice).ToString(); return(myCompprice); }
public double CalculatePriceAfterTax(IComputerPrice c) { return(c.GetPrice() + c.GetPrice() * .20); }