Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        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;
        }