Exemplo n.º 1
0
        public static int ScoreCustomer(LoanApplication application)
        {
            var customerToCheck = new LegacyCustomer {
                TotalIncome = application.Income
            };
            var legacyScore = LegacyApi.CheckScore(customerToCheck);

            return(legacyScore.AbilityToPayScore);
        }
Exemplo n.º 2
0
        public static bool VerifyCustomer(LoanApplication application)
        {
            var customer = new LegacyCustomer
            {
                Name        = $"{application.LastName}, {application.FirstName}",
                TotalIncome = application.Income
            };

            LegacyApi.CheckApplication(customer);

            return(true);
        }