示例#1
0
        static void Main(string[] args)
        {
            Console.Title = typeof(Program).Namespace;

            CreditScoreService creditScoreService = new CreditScoreService();

            creditScoreService.creditScoreCompleted += CreditScoreCompleted;

            while (true)
            {
                string ssn          = Ssn();
                double loanAmount   = LoanAmount();
                int    loanDuration = LoanDuration();

                creditScoreService.creditScoreAsync(ssn, new { ssn, loanAmount, loanDuration });
            }
        }
 public void Setup()
 {
     _sut = new CreditScoreService();
 }