Exemple #1
0
 public virtual void Put(decimal sum)
 {
     if (sum < 0)
     {
         throw new NegativeValue(nameof(sum));
     }
     Sum += sum;
     Notifier.NotifyAboutEventByType(EventType.MoneyPut, $"Added to account {sum}");
 }
Exemple #2
0
 public virtual void Put(decimal sum)
 {
     Sum += sum;
     Notifier.NotifyAboutEventByType(EventType.MoneyPut, $"Added to account {sum}");
 }