示例#1
0
        public void OnReceive(QuoteLoanRate message)
        {
            var interestRate =
                CalculateInterestRate(
                    (double)message.Amount,
                    (double)message.TermInMonths,
                    (double)message.CreditScore);

            var quoted =
                new BankLoanRateQuoted(
                    this.bankId,
                    this.randomQuoteId.Next(1000).ToString(),
                    message.LoanQuoteReferenceId,
                    message.TaxId,
                    interestRate);

            Sender.Tell(quoted, Self);
        }
示例#2
0
        public void OnReceive(QuoteLoanRate message)
        {
            var interestRate =
                CalculateInterestRate(
                    (double) message.Amount,
                    (double) message.TermInMonths,
                    (double) message.CreditScore);

            var quoted =
                new BankLoanRateQuoted(
                    this.bankId,
                    this.randomQuoteId.Next(1000).ToString(),
                    message.LoanQuoteReferenceId,
                    message.TaxId,
                    interestRate);

            Sender.Tell(quoted, Self);
        }