public void OnReceive(RecordLoanRateQuote message) { var bankLoanRateQuote = new BankLoanRateQuote( message.BankId, message.BankLoanRateQuoteId, message.InterestRate); bankLoanRateQuotes.Add(bankLoanRateQuote); loanBroker.Tell( new LoanRateQuoteRecorded( loanRateQuoteId, taxId, bankLoanRateQuote), Self); if (bankLoanRateQuotes.Count >= expectedLoanRateQuotes) { loanBroker.Tell( new LoanRateBestQuoteFilled( loanRateQuoteId, taxId, amount, termInMonths, creditRatingScore, BestBankLoanRateQuote()), Self); } }