private IEnumerable <Policy> GetEffectivePolicies(string nameOfInsuredObject, InsurancePeriod insurancePeriod) { return(policyRepository.FindByNameOfInsuredObject(nameOfInsuredObject) .Where(p => p.OverlapsWith(insurancePeriod))); }