Пример #1
0
        public static int ScoreCustomer(LoanApplication application)
        {
            var customerToCheck = new LegacyCustomer {
                TotalIncome = application.Income
            };
            var legacyScore = LegacyApi.CheckScore(customerToCheck);

            return(legacyScore.AbilityToPayScore);
        }
Пример #2
0
        public static LegacyCustomerScore CheckScore(LegacyCustomer customer)
        {
            var customerScore = new LegacyCustomerScore
            {
                CreditScore        = RandomNumber.Create(0, 10),
                AbilityToPayScore  = RandomNumber.Create(0, 10),
                DefaultChanceScore = RandomNumber.Create(0, 10)
            };

            return(customerScore);
        }
Пример #3
0
        public static bool VerifyCustomer(LoanApplication application)
        {
            var customer = new LegacyCustomer
            {
                Name        = $"{application.LastName}, {application.FirstName}",
                TotalIncome = application.Income
            };

            LegacyApi.CheckApplication(customer);

            return(true);
        }
Пример #4
0
 public static bool CheckApplication(LegacyCustomer customer)
 {
     return(RandomBool.Create());
 }