コード例 #1
0
 private IEnumerable <Policy> GetEffectivePolicies(string nameOfInsuredObject, InsurancePeriod insurancePeriod)
 {
     return(policyRepository.FindByNameOfInsuredObject(nameOfInsuredObject)
            .Where(p => p.OverlapsWith(insurancePeriod)));
 }