//Run workflow logic to see if the loan application is valid.
        public bool CheckLoanEligibility(Loan loan)
        {
            var checkLoanEligibility = new Workflows.CheckLoanEligibility();
            var workflow = new WorkflowInvoker(checkLoanEligibility);
            var InputArguments = new Dictionary<string, object>();
            InputArguments.Add("loan", loan);
            var resultDictionary = workflow.Invoke(InputArguments);
            var result = (bool)resultDictionary["approved"];

            return result;
        }
        public void TestInit()
        {
            _result = new bool?();

            _loan = new Loan
            {
                LoanAmount = 100,
                DownPaymentAmount = 20,
                CreditRating = 700,
                HasCollateral = true
            };
        }