Example #1
0
 public IEnumerable <CallInfo> GetCallInfo(PhoneNumber source)
 {
     return(_callCollection.Where(info => (info.Caller == source || info.Receiver == source)));
 }
Example #2
0
 public CallInfo GetLastConnectionInfo(PhoneNumber source)
 {
     return(_connectionCollection.FirstOrDefault(info => (info.Caller == source || info.Receiver == source)));
 }
Example #3
0
 public ITerminal GetTerminal(PhoneNumber phoneNumber)
 {
     return(_terminals.FirstOrDefault(terminal => terminal.PhoneNumber == phoneNumber));
 }