// mock constructor
 public DepartmentsController(IDepartmentsMock mock)
 {
     this.db = mock;
 }
 // default constructor, use the live db
 public DepartmentsController()
 {
     this.db = new EFDepartments();
 }