public void Scan(string code) { Guard.Operation(_outChecker != null); var barCode = new BarCode(code); _outChecker.Scan(barCode); }
public string Scan(string code) { Guard.Operation(_outChecker != null); var barCode = new BarCode(code); var ret = _outChecker.Scan(barCode); if (CreditLimit != null && CreditLimit.CashLimit > decimal.Zero) { ret += CreditLimit.GetStringInCaseOfCashLimit(_outChecker); } return(ret); }