예제 #1
0
파일: InterBank.cs 프로젝트: lukeses/bank
        public void SendBackInterBankTransfer(InterBankTransfer interBankTransfer)
        {
            var returnTransfer = new InterBankTransfer(interBankTransfer.getReceiverBank(), interBankTransfer.getReceiverID(),
                                                       interBankTransfer.getSenderBank(), interBankTransfer.getSenderID(), interBankTransfer.getAmount());

            SendInterBankTransfer(returnTransfer);
        }
예제 #2
0
파일: InterBank.cs 프로젝트: lukeses/bank
        public void SendInterBankTransfer(InterBankTransfer interBankTransfer)
        {
            var receiverBank = interBankTransfer.getReceiverBank();

            if (BankList.Contains(receiverBank))
            {
                receiverBank.receiveInterBankTransfer(interBankTransfer);
            }
        }