Exemple #1
0
        public CreditCardApplicationDecision Evalute(CreditCardApplication application)
        {
            if (application.GrossAnnualIncome >= HighIncomeThreshhold)
            {
                return(CreditCardApplicationDecision.AutoAccepted);
            }

            if (application.Age <= AutoReferralMaxAge)
            {
                return(CreditCardApplicationDecision.ReferredToHuman);
            }

            if (application.GrossAnnualIncome < LowIncomeThreshhold)
            {
                return(CreditCardApplicationDecision.ReferredToHuman);
            }

            return(CreditCardApplicationDecision.ReferredToHuman);
        }
Exemple #2
0
        public CreditCardApplicationDecision Evaluate(CreditCardApplication application)
        {
            if (application.GrossAnnualIncome >= HighIncomeThreshhold)
            {
                return(CreditCardApplicationDecision.AutoAccepted);
            }
            if (!_validator.IsValid(application.FrequentFlyerNumber))
            {
                return(CreditCardApplicationDecision.ReferredToHuman);
            }

            if (application.Age <= AutoReferralMaxAge)
            {
                return(CreditCardApplicationDecision.ReferredToHuman);
            }

            if (application.GrossAnnualIncome < LowIncomeThreshhold)
            {
                return(CreditCardApplicationDecision.AutoDeclined);
            }

            return(CreditCardApplicationDecision.ReferredToHuman);
        }