Exemplo n.º 1
0
        public void Rate()
        {
            _logger.Log("Starting rate.");

            _logger.Log("Loading policy.");

            string policyString = _policySource.GetPolicyFromSource();

            var policy = _policySerializer.GetPolicyFromJsonString(policyString);

            //Rate(policy);

            _logger.Log("Rating completed.");
        }
Exemplo n.º 2
0
        public void Rate()
        {
            _logger.Log("Starting rate.");

            _logger.Log("Loading policy.");

            var policyJson = _policySource.GetPolicyFromSource();

            var policy = _policySerializer.GetPolicyFromJsonString(policyJson);

            var rater = _raterFactory.Create(policy);

            Rating = rater.Rate(policy);

            _logger.Log("Rating completed.");
        }
Exemplo n.º 3
0
        public void Rate()
        {
            StartLogging();

            // load policy - open file policy.json
            string policyJson = _policySource.GetPolicyFromSource();

            var policy = _policySerializer.GetPolicyFromJsonString(policyJson);


            var rater = _factory.Create(policy);

            rater.Rate(policy);


            FinishLogging();
        }