Пример #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;
        }