Exemplo n.º 1
0
 public Debit(DebitId DebitId, AccountId accountId, DateTime transactionDate, decimal value, string currency)
 {
     this.DebitId         = DebitId;
     this.AccountId       = accountId;
     this.TransactionDate = transactionDate;
     this.Amount          = new PositiveMoney(value, new Currency(currency));
 }
Exemplo n.º 2
0
 public Debit(DebitId id, AccountId accountId, PositiveMoney amount, DateTime transactionDate)
 {
     this.Id              = id;
     this.AccountId       = accountId;
     this.Amount          = amount;
     this.TransactionDate = transactionDate;
 }
Exemplo n.º 3
0
 public Debit(
     DebitId debitId,
     AccountId accountId,
     PositiveMoney amountToWithdraw,
     DateTime transactionDate)
 {
     this.Id              = debitId;
     this.AccountId       = accountId;
     this.Amount          = amountToWithdraw;
     this.TransactionDate = transactionDate;
 }