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