public DefaultRatingContext(IPolicyDeserializer policyDeserializer,
                             IRaterFactory raterFactory,
                             ILogger logger,
                             IPolicyReader policyReader)
 {
     _policyDeserializer = policyDeserializer;
     _raterFactory       = raterFactory;
     _logger             = logger;
     _policyReader       = policyReader;
 }
예제 #2
0
 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;
 }