public static int ScoreCustomer(LoanApplication application) { var customerToCheck = new LegacyCustomer { TotalIncome = application.Income }; var legacyScore = LegacyApi.CheckScore(customerToCheck); return(legacyScore.AbilityToPayScore); }
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); }
public static bool VerifyCustomer(LoanApplication application) { var customer = new LegacyCustomer { Name = $"{application.LastName}, {application.FirstName}", TotalIncome = application.Income }; LegacyApi.CheckApplication(customer); return(true); }
public static bool CheckApplication(LegacyCustomer customer) { return(RandomBool.Create()); }