Beispiel #1
0
 private void CreditCheckedHandler(CreditChecked message)
 {
     _logger.Info("LoanBroker recieved CreditChecked message:\n{0}",
                  JsonConvert.SerializeObject(message));
     ProcessOf(message.CreditProcessingReferenceId).Tell(
         new EstablishCreditScoreForLoanRateQuote(message.CreditProcessingReferenceId,
                                                  message.TaxId,
                                                  message.Score));
 }
Beispiel #2
0
        public void CheckCreditHandler(CheckCredit message)
        {
            _logger.Info("CreditBureau recieved CheckCredit message:\n{0}",
                         JsonConvert.SerializeObject(message));
            int           range        = _creditRanges[_randomCreditRangeGenerator.Next(5)];
            int           score        = range + _randomCreditScoreGenerator.Next(20);
            CreditChecked crediChecked =
                new CreditChecked(
                    message.CreditProcessReferenceId,
                    message.TaxId,
                    score);

            _logger.Info("CreditBureau responded with CreditChecked message: " + message);
            Sender.Tell(crediChecked);
        }