Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }