private void Send(COperation co) //Send operations from KIR { int dest = co.GetDestinationID(); this.bankUtility.GetAccount(dest).addMoney(co.GetAmount()); this.bankUtility.GetAccount(dest).GetHistory().AddToHistory(co); }
public void AddOperation(COperation co) { // checkID(co); // if (toKIR) this.kirOperations.Add(co); // else // Send(co); }
private void addOperation(IBank bu, COperation o) { listOfBanks[bu].Add(o); }
public void AddToHistory(COperation co) { operations.Add(co); }