private bool validate(BasePremium bpConfig, MemberObject member)
 {
     return(member.Age >= bpConfig.MinAge && (member.Age <= bpConfig.MaxAge || bpConfig.MaxAge == 0));
 }
        private double getBasePremium(MemberObject member)
        {
            BasePremium bpConfig = this.config.BasePremiumRule.Where(r => this.validate(r, member)).FirstOrDefault();

            return(bpConfig.Premium);
        }