Exemplo n.º 1
0
        public string GetStringInCaseOfCashLimit(OutChecker _outChecker)
        {
            Guard.Operation(_outChecker != null);
            var remind    = CashLimit - GetCurrentBillValue(_outChecker);
            var retString = "\n";

            if (remind <= 0)
            {
                retString += "You reach the limit, that is waring, please close the bill... :) \n";
                retString += _outChecker.ShowBill().PrintableText + " \n";
            }
            else
            {
                retString += string.Format("Reminder rest of cache {0}", remind);
            }
            return(retString);
        }
Exemplo n.º 2
0
 private decimal GetCurrentBillValue(OutChecker _outChecker)
 {
     Guard.Operation(_outChecker != null);
     return(_outChecker.ShowBill().SumPriceOfBoughtProducts);
 }
 public string GetCurrentBill()
 {
     Guard.Operation(_outChecker != null);
     return(_outChecker.ShowBill().PrintableText);
 }