コード例 #1
0
 public void doOeration(OperationEnum operation, BigDecimal amount)
     throws NotEnoughMoneyException, MachineOutOfOrderException {
   OperationService operationService = new OperationService();
   if (operation.equals(OperationEnum.WITHDRAW))
     operationService.withdrawOperation(account, amount);
   else if (operation.equals(OperationEnum.DEPOSIT))
     operationService.depositOperation(account, amount);
 }