public HomeController(IParkDAL parkDAL, IDailyForecastDAL dailyForecastDAL, ISurveyDAL surveyDAL, ISurveyResultDAL surveyResultDAL)
 {
     this.parkDAL          = parkDAL;
     this.dailyForecastDAL = dailyForecastDAL;
     this.surveyDAL        = surveyDAL;
     this.surveyResultDAL  = surveyResultDAL;
 }
 public ParkInfoController(IParkDAL parkDAL, ITrailDAL trailDAL, IPanoramicDAL panoramicDAL, ILastSeenImagesDAL lastSeenImagesDAL, ILastSeenVideosDAL lastSeenVideosDAL)
 {
     this.parkDAL           = parkDAL;
     this.trailDAL          = trailDAL;
     this.panoramicDAL      = panoramicDAL;
     this.lastSeenImagesDAL = lastSeenImagesDAL;
     this.lastSeenVideosDAL = lastSeenVideosDAL;
 }
示例#3
0
        public void Initialize()
        {
            _parkDAL = new ParkDAL(NpGeekDbConnectionString);

            using (var connection = new SqlConnection(NpGeekDbConnectionString))
            {
                const string sql =
                    @"INSERT park VALUES ('CVNP', 'Cuyahoga Valley National Park', 'Ohio', 32832, 696, 125, 0, 'Woodland', 2000, 2189849, 'Of all the paths you take in life, make sure a few of them are dirt.', 'John Muir', 'Though a short distance from the urban areas of Cleveland and Akron, Cuyahoga Valley National Park seems worlds away. The park is a refuge for native plants and wildlife, and provides routes of discovery for visitors. The winding Cuyahoga River gives way to deep forests, rolling hills, and open farmlands. Walk or ride the Towpath Trail to follow the historic route of the Ohio & Erie Canal', 0, 390);
                    INSERT park VALUES ('ENP', 'Everglades National Park', 'Florida', 1508538, 0, 35, 0, 'Tropical', 1934, 1110901, 'There are no other Everglades in the world. They are, they have always been, one of the unique regions of the earth; remote, never wholly known. Nothing anywhere else is like them.', 'Marjory Stoneman Douglas', 'The Florida Everglades, located in southern Florida, is one of the largest wetlands in the world. Several hundred years ago, this wetlands was a major part of a 5,184,000 acre watershed that covered almost a third of the entire state of Florida. The Everglades consist of a shallow sheet of fresh water that rolls slowly over the lowlands and through billions of blades of sawgrass. As water moves through the Everglades, it causes the sawgrass to ripple like green waves; this is why the Everglades received the nickname ""River of Grass.""', 8, 760);
                    INSERT park VALUES('GCNP', 'Grand Canyon National Park', 'Arizona', 1217262, 8000, 115, 120, 'Desert', 1919, 4756771, 'It is the one great wonders. . . every American should see.', 'Theodore Roosevelt', 'If there is any place on Earth that puts into perspective the grandiosity of Mother Nature, it is the Grand Canyon. The natural wonder, located in northern Arizona, is a window into the regio''s geological and Native American past. As one of the country''s first national parks, the Grand Canyon has long been considered a U.S. treasure, and continues to inspire scientific study and puzzlement.', 8, 450);";

                var command = connection.CreateCommand();
                command.CommandText = sql;

                connection.Open();
                command.ExecuteNonQuery();
            }
        }
 public void Setup()
 {
     _parkDAL = new ParkSqlDAL(NpGeekDbConnectionString);
 }
示例#5
0
 public HomeController(IParkDAL parkDAL, IForecastDAL forecastDAL)
 {
     this.parkDAL     = parkDAL;
     this.forecastDAL = forecastDAL;
 }
 public SurveyController(ISurveyDAL sDal, IParkDAL pDal)
 {
     this.sDal = sDal;
     this.pDal = pDal;
 }
 /// <summary>
 /// Instantiates ParkController with access to the ParkDAL and WeatherDAL
 /// </summary>
 /// <param name="parkDAL">CRUD methods for Park</param>
 /// <param name="weatherDAL"> CRUD methods for Weather</param>
 public ParkController(IParkDAL parkDAL, IWeatherDAL weatherDAL)
 {
     this._parkDAL    = parkDAL;
     this._weatherDAL = weatherDAL;
 }
示例#8
0
 public List <Park> getAllParkSql()
 {
     parkDAL = new ParkSqlDAL();
     return(parkDAL.getAllParksData());
 }
示例#9
0
 public NationalParkController(IParkDAL parkDAL)
 {
     this.parkDAL = parkDAL;
 }
 public HomeController(IParkDAL parkDAL, IWeatherDAL weatherDAL)
 {
     _parkDAL    = parkDAL;
     _weatherDAL = weatherDAL;
 }
示例#11
0
 public ParkController(IParkDAL parkDal)
 {
     _parkDal = parkDal;
 }
示例#12
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;
 }
示例#13
0
 public ParkController(IParkDAL parkDal)
 {
     this.parkDal = parkDal;
 }
示例#14
0
 public SurveyController(ISurveyDAL surveyDal, IParkDAL parkDal)
 {
     this.surveyDal = surveyDal;
     this.parkDal   = parkDal;
 }
 public HomeController(IParkDAL pDal, IWeatherDAL wDal)
 {
     this.pdal = pDal;
     this.wdal = wDal;
 }
示例#16
0
 public ParkController(IParkDAL parkDAL)
 {
     this.parkDAL = parkDAL;
 }
示例#17
0
 /// <summary>
 /// Constructor that initializes connection.
 /// </summary>
 /// <param name="connection">Connection to database</param>
 public NationalPark(string connection)
 {
     _db = new ParkDAL(connection);
     //_db = new MockParkDAL();
 }
示例#18
0
 public HomeController(IParkDAL dal, IWeatherDAL dalWeather)
 {
     this.dal        = dal;
     this.dalWeather = dalWeather;
 }
示例#19
0
 public ParkController(IParkDAL dal)
 {
     this.dal = dal;
 }
 public HomeController(IParkDAL parkDAL, ISurveyDAL surveyDAL, IWeatherDAL weatherDAL)
 {
     _parkdal    = parkDAL;
     _surveyDal  = surveyDAL;
     _weatherDAL = weatherDAL;
 }
示例#21
0
 public DetailController(IParkDAL dal, IWeatherDAL dal2)
 {
     this.dal  = dal;
     this.dal2 = dal2;
 }
示例#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;
 }
示例#23
0
 public HomeController(IParkDAL parkDAL, IForcastDAL forDAL)
 {
     _parkDAL = parkDAL;
     _forDAL  = forDAL;
 }
示例#24
0
 // GET: Home
 public HomeController(IParkDAL dal)
 {
     _dal = dal;
 }
示例#25
0
 public HomeController(IParkDAL parkDAL, IWeatherDAL weatherDAL)
 {
     this.parkDAL    = parkDAL;
     this.weatherDAL = weatherDAL;
 }
示例#26
0
 public HomeController(IParkDAL dal, IWeatherDAL weatherDal)
 {
     this.dal        = dal;
     this.weatherDal = weatherDal;
 }
示例#27
0
 public HomeController(IParkDAL parkDAL)
 {
     this.parkDAL = parkDAL;
 }
 public SurveyController(IParkDAL dal)
 {
     this.dal = dal;
 }
 public HomeController(IParkDAL dal)
 {
     this.dal = dal;
 }
示例#30
0
 public SurveyController(IParkDAL parkDal)
 {
     _parkDal = parkDal;
 }