示例#1
0
        public void OnReceive(EstablishCreditScoreForLoanRateQuote message)
        {
            creditRatingScore = message.Score;

            if (QuotableCreditScore(creditRatingScore))
            {
                loanBroker.Tell(
                    new CreditScoreForLoanRateQuoteEstablished(
                        loanRateQuoteId,
                        taxId,
                        creditRatingScore,
                        amount,
                        termInMonths),
                    Self);
            }
            else
            {
                loanBroker.Tell(
                    new CreditScoreForLoanRateQuoteDenied(
                        loanRateQuoteId,
                        taxId,
                        amount,
                        termInMonths,
                        creditRatingScore),
                    Self);
            }
        }
示例#2
0
        public void OnReceive(EstablishCreditScoreForLoanRateQuote message)
        {
            creditRatingScore = message.Score;

            if (QuotableCreditScore(creditRatingScore))
            {
                loanBroker.Tell(
                    new CreditScoreForLoanRateQuoteEstablished(
                        loanRateQuoteId,
                        taxId,
                        creditRatingScore,
                        amount,
                        termInMonths),
                    Self);
            }
            else
            {
                loanBroker.Tell(
                    new CreditScoreForLoanRateQuoteDenied(
                        loanRateQuoteId,
                        taxId,
                        amount,
                        termInMonths,
                        creditRatingScore),
                    Self);
            }
        }