public HomeController(IParkDAL parkDAL, IDailyForecastDAL dailyForecastDAL, ISurveyDAL surveyDAL, ISurveyResultDAL surveyResultDAL) { this.parkDAL = parkDAL; this.dailyForecastDAL = dailyForecastDAL; this.surveyDAL = surveyDAL; this.surveyResultDAL = surveyResultDAL; }
public HomeController(INpGeekDAL npGeekDal, IWeatherDAL weatherDal, ISurveyDAL surveyDal, ISummarySurveysDAL summarySurveysDal) { this.npGeekDal = npGeekDal; this.weatherDal = weatherDal; this.surveyDal = surveyDal; this.summarySurveysDal = summarySurveysDal; }
public void Setup() { _surveyDAL = new SurveySqlDAL(NpGeekDbConnectionString); }
public SurveyController(ISurveyDAL dal) { this.dal = dal; }
public HomeController(IParkDAL theDal, ISurveyDAL otherDal) { this.dal = theDal; this.sDAL = otherDal; }
public SurveyController(ISurveyDAL surveyDal) { this.surveyDal = surveyDal; }
public SurveyController(ISurveyDAL dal) { _dal = dal; }
public SurveyController(IHomeDAL dal, ISurveyDAL sdal) { this.dal = dal; this.sdal = sdal; }
public HomeController(INationalParkDAL parkDAL, ISurveyDAL surveyDAL) { this.parkDAL = parkDAL; this.surveyDAL = surveyDAL; }
public SurveyController(ISurveyDAL surveyDAL, IParksDAL parksDAL) { this.surveyDAL = surveyDAL; this.parksDAL = parksDAL; }
public SurveyController(ISurveyDAL surveyDal, IParkDAL parkDal) { this.surveyDal = surveyDal; this.parkDal = parkDal; }
public SurveyController(ISurveyDAL sDal, IParkDAL pDal) { this.sDal = sDal; this.pDal = pDal; }
private ISurveyDAL dal; //<-- private variable to hold the DAL public SurveyController(ISurveyDAL surveyDal) //<-- constructor to inject the surveyDAL { this.dal = surveyDal; //<-- assigns injected DAL to the private variable }
public SurveyController(ISurveyDAL servDAL) { _survDAL = servDAL; }
public HomeController(IHouseDAL houseDAL, ISurveyDAL surveyDAL) { this.houseDAL = houseDAL; this.surveyDAL = surveyDAL; }
public SurveyController() { surveyDAL = new SurveySqlDAL(connectionString); }
/// <summary> /// Constructor for the Controller /// </summary> /// <param name="park">IParkDAL object that is made using dependency injection</param> /// <param name="survey">ISurveyDAL object that is made using dependency injection</param> /// <param name="weather">IWeatherDAL object that is made using dependency injection</param> public HomeController(IParkDAL park, ISurveyDAL survey, IWeatherDAL weather) { _parkDAL = park; _surveyDAL = survey; _weatherDAL = weather; }
public SurveyController(ISurveyDAL surveyDAL) { this.surveyDAL = surveyDAL; }
public FavoriteParksController(ISurveyDAL dal) { this.dal = dal; }
public List <Survey> getAllSurveySql() { surveyDAL = new SurveySqlDAL(); return(surveyDAL.getAllSurvey()); }
public HomeController(IParksDAL parksDAL, IWeatherDAL weatherDAL, ISurveyDAL surveyDAL) { this.ParksDAL = parksDAL; this.WeatherDAL = weatherDAL; this.SurveyDAL = surveyDAL; }
/// <summary> /// Instantiates an instance of Survey with dependency injection /// </summary> /// <param name="surveyDAL">Access to DAL and methods for Survey DB </param> /// <param name="parkDAL">Access to DAL and methods pertaining to park</param> public SurveyController(ISurveyDAL surveyDAL, IParkDAL parkDAL) { this._surveyDAL = surveyDAL; this._parkDAL = parkDAL; }
public HomeController(IParkDAL parkDAL, ISurveyDAL surveyDAL, IWeatherDAL weatherDAL) { _parkdal = parkDAL; _surveyDal = surveyDAL; _weatherDAL = weatherDAL; }
public NationalParkSqlDAL(string connectionString, IWeatherDAL weatherDAL, ISurveyDAL surveyDAL) { this.connectionString = connectionString; this.weatherDAL = weatherDAL; this.surveyDAL = surveyDAL; }
public HomeController(IForecastDAL forcastDal, IParkDAL parkDal, ISurveyDAL surveyDal) { this.forcastDal = forcastDal; this.parkDal = parkDal; this.surveyDal = surveyDal; }