コード例 #1
0
 public void Setup()
 {
     dal        = DALLoanAPoundCreator.Create("test");
     bll        = BLLLoanAPoundCreator.Create("test", dal);
     loanEngine = LoanEngineCreator.Create("test", bll);
     applicant  = ApplicantCreator.Create("test", bll);
 }
コード例 #2
0
 public void Setup()
 {
     //Inject classes for tests
     dal       = DALLoanAPoundCreator.Create("test");
     bll       = BLLLoanAPoundCreator.Create("test", dal);
     applicant = ApplicantCreator.Create("test", bll);
 }
コード例 #3
0
        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);
        }