private void GenerateRecord(IServiceCharge charge, IServiceCall call) { var newRecord = new Record(call.PhoneNumber, call.GetStartTime(), charge.Description, call.ToString(), charge.CalculateCharge(call)); _recordRepository.SaveRecord(newRecord); }
public void AddServiceChargeToSubscription(IServiceCharge serviceCharge) { _serviceChargeRepository.SaveServiceCharge(serviceCharge); }
public void SaveServiceCharge(IServiceCharge serviceCharge) { _serviceCharges.Add(serviceCharge); }
private static bool HasSameCountry(IServiceCharge charge, string country) { return charge.Country == country; }
private static bool HasSameServiceTypeAsCall(IServiceCharge charge, IServiceCall call) { return charge.ServiceType == call.Type; }
private static bool HasSameCountry(IServiceCharge charge, IServiceCall call) { return charge.Country == call.FromCountry || charge.Country == call.ToCountry; }