Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public Agreement(Client client, PhoneNumber phoneNumber, DateTime acceptedDate)
 {
     Client = client;
     PhoneNumber = phoneNumber;
     AcceptedDate = acceptedDate;
 }
Ejemplo n.º 3
0
 public IAccount GetAccount(Client client)
 {
     return this._acccounts.FirstOrDefault(IAccount => IAccount.Client == client);
 }