Beispiel #1
0
 public void Setup()
 {
     dal        = DALLoanAPoundCreator.Create("test");
     bll        = BLLLoanAPoundCreator.Create("test", dal);
     loanEngine = LoanEngineCreator.Create("test", bll);
     applicant  = ApplicantCreator.Create("test", bll);
 }
        static public ILoanEngine Create(string type, IBLLLoanAPound bll)
        {
            ILoanEngine loanEngine = null;

            switch (type)
            {
            case "test":
                loanEngine = new LoanEngine(bll);
                break;

            default:
                loanEngine = null;
                break;
            }
            return(loanEngine);
        }