Example #1
0
 public void Initialize()
 {
     httpContext      = new MockHttpContextWrapper();
     controllerToTest = new InstructorApiController();
     //controllerToTest.ControllerContext = new ControllerContext(httpContext.Context.Object, new RouteData(), controllerToTest);
     dbContext = new DAL.SchoolContext(this.ConnectionString);
     //controllerToTest.DbContext = dbContext;
 }
 public void Initialize()
 {
     httpContext = new MockHttpContextWrapper();
     //controllerToTest.ControllerContext = new ControllerContext(httpContext.Context.Object, new RouteData(), controllerToTest);
     DBUtils.db       = new DAL.SchoolContext(this.ConnectionString);
     instructorBL     = new InstructorBL();
     generator        = new EntityGenerator();
     controllerToTest = new InstructorApiController();
 }