public IEnumerable<CallStatistic> GetClientCalls(Client client, Func<CallStatistic, bool> predicate) { IAccount account = GetAccount(client); if (account == null) throw new Exception("IAccount can not be found"); return this._callStatistics[account].Where(predicate); }
public Agreement(Client client, PhoneNumber phoneNumber, DateTime acceptedDate) { Client = client; PhoneNumber = phoneNumber; AcceptedDate = acceptedDate; }
public IAccount GetAccount(Client client) { return this._acccounts.FirstOrDefault(IAccount => IAccount.Client == client); }