示例#1
0
 public decimal HowMuch(Burger burger)
 {
     if ((ValueBurger(burger) + _discountCalculator.Calculate()) == ValueBurger(burger) / 2)
     {
         ;
     }
     {
         if (_discountCalculator.ChanceForWin() == 1)
         {
             return((ValueBurger(burger) + _discountCalculator.Calculate()) / 2);
         }
     }
     return(ValueBurger(burger) + _discountCalculator.Calculate());
 }