예제 #1
0
        public void AddTransaction(Transaction transaction)
        {
            // Should add Add Transaction to LeagueModel
            _model.Transactions.Add(transaction);

            ExecuteTransaction(transaction);
        }
예제 #2
0
        public void ExecuteTransaction(Transaction transaction)
        {
            log.InfoFormat("Executing Transaction START");

            // TODO

            log.InfoFormat("Executing Transaction FINISH");
        }
        public bool Register(out Transaction createdTransaction)
        {
            createdTransaction = null;

            if (!VerifyGoodTransaction())
            {
                log.InfoFormat("Could not finalize transaction");
                return false;
            }

            createdTransaction = new Transaction(_tradePieces, _transactionType);
            return true;
        }