Ejemplo n.º 1
0
 public Terminal(PhoneNumber number, ILogger logger)
 {
     this._PhoneNumber = number;
     this._Logger      = logger;
 }
 public double GetDebtOnCurrentMoment(PhoneNumber phoneNumber)
 {
     return(_NotPayCalls
            .Where(x => x.Source == phoneNumber)
            .Sum(x => x.Price));
 }
 public bool IsDebtor(PhoneNumber phoneNumber)
 {
     return(!_Debtors.Contains(phoneNumber));
 }
Ejemplo n.º 4
0
 public Request(PhoneNumber sourceNumber, PhoneNumber targetNumber)
 {
     this.SourceNumber = sourceNumber;
     this.TargetNumber = targetNumber;
 }