/// <summary> /// Constructor of the bank account class /// </summary> /// <param name="id">International Bank Account Number</param> /// <param name="ownerInformation">First and Last name</param> /// <param name="balance">Balance of the bank account</param> /// <param name="bonus">Bonus of the bank account</param> /// <param name="type">Type of bank account</param> public BankAccount(int id, string ownerInformation, decimal balance, float bonus, AccountType type) { ValidateOwner(ownerInformation); ValidateBonus(bonus); ValidateBalance(balance); AccountNumber = id; OwnerInformation = ownerInformation; Balance = balance; Bonus = bonus; TypeBankAccount = type; }
public Account(int id, string ownerFirstName, string ownerLastName, decimal amount, int points, AccountType type) { Id = id; OwnerFirstName = ownerFirstName; OwnerLastName = ownerLastName; Amount = amount; Points = points; Status = AccountStatus.Active; Type = type; }
/// <summary> /// Initialize new instance of Account class /// </summary> /// <param name="accountNumber">The account number</param> /// <param name="owner">The owner of the account</param> /// <param name="type">The account type</param> public Account(string accountNumber, string owner, AccountType type) { AccountNumber = accountNumber; AccountOwner = owner; AccountType = type; }