示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Account"/> class with specified chracteristics.
 /// </summary>
 /// <param name="name">Name of account owner.</param>
 /// <param name="surname">Surname of account owner.</param>
 /// <param name="gradation">Gradation of the account.</param>
 public Account(string name, string surname, IAccountGradation gradation)
 {
     this.Number       = new Random().Next(1, int.MaxValue);
     this.OwnerName    = name;
     this.OwnerSurname = surname;
     this.Amount       = 0;
     this.bonus        = 0;
     this.gradation    = gradation;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Account"/> class with specified chracteristics.
 /// </summary>
 /// <param name="number">The number of account.</param>
 /// <param name="name">Name of account owner.</param>
 /// <param name="surname">Surname of account owner.</param>
 /// <param name="amount">Amount of money.</param>
 /// <param name="bonus">Bonuses for operations.</param>
 /// <param name="gradation">Gradation of the account.</param>
 public Account(long number, string name, string surname, double amount, int bonus, IAccountGradation gradation)
 {
     this.Number       = number;
     this.OwnerName    = name;
     this.OwnerSurname = surname;
     this.Amount       = amount;
     this.bonus        = bonus;
     this.gradation    = gradation;
     this.closeAccount = false;
 }