Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BankAccount"/> class.
 /// </summary>
 /// <param name="accountNumber">Unique account number.</param>
 /// <param name="owner">Owner of the account.</param>
 /// <param name="balance">Balance of account.</param>
 /// <param name="bonus">Bonus on account.</param>
 protected BankAccount(string accountNumber, AccountOwner owner, decimal balance = 0m, int bonus = 0)
 {
     AccountNumber = accountNumber;
     Owner         = owner;
     Balance       = balance;
     Bonus         = bonus;
 }
Beispiel #2
0
 public AbstractBankAccount(string number, AccountOwner owner, decimal balance, decimal bonusPoints)
 {
     AccountNumber = number;
     Owner         = owner;
     Balance       = balance;
     BonusPoints   = bonusPoints;
     Status        = BankAccountStatus.Opened;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="BankAccount"/> class with specified params
 /// </summary>
 /// <param name="accountNumber">Account number</param>
 /// <param name="owner">Account owner</param>
 /// <param name="invoiceAmount">Account balance</param>
 /// <param name="bonusScores">Bonus scores</param>
 /// <param name="accountType">Account type</param>
 /// <param name="isClosed">Account status</param>
 public BankAccount(AccountOwner owner, string accountNumber, decimal invoiceAmount, double bonusScores,
                    bool isClosed = false)
 {
     Owner         = owner;
     AccountID     = accountNumber;
     InvoiceAmount = invoiceAmount;
     BonuseScores  = bonusScores;
     IsClosed      = isClosed;
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PlatinumAccount"/> class with specified params
 /// </summary>
 /// <param name="accountNumber">Account number</param>
 /// <param name="owner">Account owner</param>
 /// <param name="invoiceAmount">Account balance</param>
 /// <param name="bonusScores">Bonus scores</param>
 /// <param name="accountType">Account type</param>
 /// <param name="isClosed">Account status</param>
 public SilverAccount(AccountOwner owner, string accountNumber, decimal invoiceAmount, double bonusScores,
                      bool isClosed = false) : base(owner, accountNumber, invoiceAmount, bonusScores, isClosed)
 {
 }
Beispiel #5
0
 /// <inheritdoc />
 public GoldBankAccount(string accountNumber, AccountOwner owner, decimal balance = 0m, int bonus = 0)
     : base(accountNumber, owner, balance, bonus)
 {
 }