private double SetType(CashType type, double price, double num)
        {
            CashSuper cashsuper = CashFactory.createCashAccept(type);

            double totalPrices = 0d;

            totalPrices = cashsuper.AcceptCash(price * num);

            return(totalPrices);
        }
 public double GetResult(double money)
 {
     return(_cashSuper.AcceptCash(money));
 }
Exemple #3
0
 public double ContextInterface(double money)
 {
     return(_cashSuper.AcceptCash(money));
 }
Exemple #4
0
 public double ConTextInterface(double money)
 {
     return(ce.AcceptCash(money));
 }
Exemple #5
0
 public double GetResult(double money)
 {
     return(cs.AcceptCash(money));
 }