/// <summary> /// Constructor that adds all the dependencies /// </summary> /// <param name="authProvider">Where the authentication asd authoriztion is housed</param> /// <param name="dal">The locaion data access layer</param> /// <param name="categoryDal">The class that is used to access the categories table.</param> public LocationController(IAuthProvider authProvider, ILocationDAL dal, ICategorySqlDAL categoryDal, ICheckinSqlDAL checkinDal) { this.authProvider = authProvider; this.dal = dal; this.categoryDal = categoryDal; this.checkinDal = checkinDal; }
/// <summary> /// Constructor used to inject category DAL and location DAL /// </summary> /// <param name="categoryDal">The category DAL to use.</param> /// <param name="locationDal">The location DAL to use.</param> public SearchController(ICategorySqlDAL categoryDal, ILocationDAL locationDal) { this.categroyDal = categoryDal; this.locationDal = locationDal; }