public Transaction DoTransaction()
        {
            int     sign      = -1;
            decimal amount    = 100;
            decimal alicePays = sign * amount;
            decimal bobPays   = alicePays * -1;

            TransactionPart alice       = new TransactionPart("Alice", alicePays);
            TransactionPart bob         = new TransactionPart("Bob", bobPays);
            Transaction     transaction = new Transaction(alice, bob);

            return(transaction);
        }
Esempio n. 2
0
 public Transaction(TransactionPart transactionPart, TransactionPart transactionCounterPart)
 {
     Currentransaction = new Tuple <TransactionPart, TransactionPart>(transactionPart, transactionCounterPart);
 }