Пример #1
0
 /// <summary>
 /// Deposits the specified amount to the account.
 /// </summary>
 /// <param name="amount">The amount.</param>
 /// <returns>deposited amount</returns>
 public double deposit(double amount)
 {
     amount.Positive();
     lock (locker)
     {
         transactionsList.Add(new Transaction(amount, dateProvider.now()));
         return(amount);
     }
 }