Ejemplo n.º 1
0
            public string GetMyComputerPrice(IPriceCalculation cmpCal, IComputerPrice cmpPrice)
            {
                var myCompprice = "El Precio es : " +
                                  cmpCal.CalculatePriceAfterTax(cmpPrice).ToString();

                return(myCompprice);
            }
Ejemplo n.º 2
0
 public double CalculatePriceAfterTax(IComputerPrice c)
 {
     return(c.GetPrice() + c.GetPrice() * .20);
 }