public DefaultRatingContext(IPolicyDeserializer policyDeserializer, IRaterFactory raterFactory, ILogger logger, IPolicyReader policyReader) { _policyDeserializer = policyDeserializer; _raterFactory = raterFactory; _logger = logger; _policyReader = policyReader; }
public RatingEngine(IPolicyDeserializer policyDeserializer, IRaterFactory raterFactory, ILogger logger, IPolicyReader policyReader) { _policyDeserializer = policyDeserializer; _raterFactory = raterFactory; _logger = logger; _policyReader = policyReader; _ratingContext = new DefaultRatingContext(_policyDeserializer, _raterFactory, _logger, _policyReader); _ratingContext.Engine = this; }