public Withdrawal(int accountHolderId, double value, string equipament) { if (AccountHolderId.IsNull()) { throw new ArgumentNullException(nameof(accountHolderId)); } if (equipament.IsEmpty()) { throw new ArgumentNullException(nameof(equipament)); } AccountHolderId = accountHolderId; Value = value; Equipament = equipament; }
public Payment(int accountHolderId, double value, string recipient) { if (AccountHolderId.IsNull()) { throw new ArgumentNullException(nameof(accountHolderId)); } if (recipient.IsEmpty()) { throw new ArgumentNullException(nameof(recipient)); } AccountHolderId = accountHolderId; Value = value; Recipient = recipient; }