public HomeController(IParkDAL parkDAL, IDailyForecastDAL dailyForecastDAL, ISurveyDAL surveyDAL, ISurveyResultDAL surveyResultDAL)
 {
     this.parkDAL          = parkDAL;
     this.dailyForecastDAL = dailyForecastDAL;
     this.surveyDAL        = surveyDAL;
     this.surveyResultDAL  = surveyResultDAL;
 }
Esempio n. 2
0
 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;
 }
Esempio n. 5
0
 public HomeController(IParkDAL theDal, ISurveyDAL otherDal)
 {
     this.dal  = theDal;
     this.sDAL = otherDal;
 }
 public SurveyController(ISurveyDAL surveyDal)
 {
     this.surveyDal = surveyDal;
 }
Esempio n. 7
0
 public SurveyController(ISurveyDAL dal)
 {
     _dal = dal;
 }
Esempio n. 8
0
 public SurveyController(IHomeDAL dal, ISurveyDAL sdal)
 {
     this.dal  = dal;
     this.sdal = sdal;
 }
Esempio n. 9
0
 public HomeController(INationalParkDAL parkDAL, ISurveyDAL surveyDAL)
 {
     this.parkDAL   = parkDAL;
     this.surveyDAL = surveyDAL;
 }
 public SurveyController(ISurveyDAL surveyDAL, IParksDAL parksDAL)
 {
     this.surveyDAL = surveyDAL;
     this.parksDAL  = parksDAL;
 }
Esempio n. 11
0
 public SurveyController(ISurveyDAL surveyDal, IParkDAL parkDal)
 {
     this.surveyDal = surveyDal;
     this.parkDal   = parkDal;
 }
 public SurveyController(ISurveyDAL sDal, IParkDAL pDal)
 {
     this.sDal = sDal;
     this.pDal = pDal;
 }
Esempio n. 13
0
        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
        }
Esempio n. 14
0
 public SurveyController(ISurveyDAL servDAL)
 {
     _survDAL = servDAL;
 }
 public HomeController(IHouseDAL houseDAL, ISurveyDAL surveyDAL)
 {
     this.houseDAL  = houseDAL;
     this.surveyDAL = surveyDAL;
 }
 public SurveyController()
 {
     surveyDAL = new SurveySqlDAL(connectionString);
 }
Esempio n. 17
0
 /// <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;
 }
Esempio n. 18
0
 public SurveyController(ISurveyDAL surveyDAL)
 {
     this.surveyDAL = surveyDAL;
 }
 public FavoriteParksController(ISurveyDAL dal)
 {
     this.dal = dal;
 }
Esempio n. 20
0
 public List <Survey> getAllSurveySql()
 {
     surveyDAL = new SurveySqlDAL();
     return(surveyDAL.getAllSurvey());
 }
Esempio n. 21
0
 public HomeController(IParksDAL parksDAL, IWeatherDAL weatherDAL, ISurveyDAL surveyDAL)
 {
     this.ParksDAL   = parksDAL;
     this.WeatherDAL = weatherDAL;
     this.SurveyDAL  = surveyDAL;
 }
Esempio n. 22
0
 /// <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;
 }
Esempio n. 25
0
 public HomeController(IForecastDAL forcastDal, IParkDAL parkDal, ISurveyDAL surveyDal)
 {
     this.forcastDal = forcastDal;
     this.parkDal    = parkDal;
     this.surveyDal  = surveyDal;
 }