private Dictionary <CoinType, int> _view_ChangeSimulate()
        {
            if (GetPayBalance == null)
            {
                return(new Dictionary <CoinType, int>());
            }
            int paid = GetPayBalance();

            return(_vendingMachineChangeRepository.GetChange(ref paid));
        }
        private void Change()
        {
            int paid = _customerCashPurseRepository.PayBalance;

            if (paid == 0)
            {
                _view.InsufficientMessage();
                return;
            }
            _customerCashPurseRepository.PaymentBack(_vendingMachineChangeRepository.Current, _vendingMachineChangeRepository.GetChange(ref paid));
            _customerCashPurseRepository.ResetPayBalance(paid);
            _view.VendingMachineChangeCashButtonControlView.RefreshBalance(_vendingMachineChangeRepository.Coins);
            _view.CustomerCashButtonControlView.RefreshBalance(_customerCashPurseRepository.Coins, paid);
            if (paid > 0)
            {
                _view.InsufficientMessage();
            }
        }