public void Place() { var backTransaction = new FundsTransaction() { TransactionDate = Date, Amount = this.Stake * -1 }; this.Account.AddTransaction(backTransaction); }
public void Place() { var transaction = new FundsTransaction() { TransactionDate = Date, Amount = (Liability * -1) }; this.Account.AddTransaction(transaction); }
public void Won() { var liability = Liability; var profit = this.Stake - (this.Stake * this.Account.CommissionPercent); var transaction = new FundsTransaction() { TransactionDate = Date, Amount = liability + profit }; this.Account.AddTransaction(transaction); }
public void Won() { var profit = this.Returns; profit -= profit * this.Account.CommissionPercent; var stakeReturn = this.Stake; var backTransaction = new FundsTransaction() { TransactionDate = Date, Amount = stakeReturn + profit }; this.Account.AddTransaction(backTransaction); }