Esempio n. 1
0
 public void Setup()
 {
     dal        = DALLoanAPoundCreator.Create("test");
     bll        = BLLLoanAPoundCreator.Create("test", dal);
     loanEngine = LoanEngineCreator.Create("test", bll);
     applicant  = ApplicantCreator.Create("test", bll);
 }
Esempio n. 2
0
 public void Setup()
 {
     //Inject classes for tests
     dal       = DALLoanAPoundCreator.Create("test");
     bll       = BLLLoanAPoundCreator.Create("test", dal);
     applicant = ApplicantCreator.Create("test", bll);
 }
        public void AdminCanCreateALoanType()
        {
            //Inject DAL and BLL classes for testing
            IDALLoanAPound dal = null;

            dal = DALLoanAPoundCreator.Create("test");
            IBLLLoanAPound bll = null;

            bll = BLLLoanAPoundCreator.Create("test", dal);


            IAdministrator administrator = null;

            administrator = AdministratorCreator.Create("test", bll);

            //Act
            administrator.SetUpLoanType(1, "Type1", 1, 25, 4.5);

            //Assert
            Assert.AreEqual(dal.loantypes.Count, 1);
        }