public void Initialize() { _db = new NPGeekDAO("Data Source=localhost\\sqlexpress;Initial Catalog=NPGeek;Integrated Security=True"); _tran = new TransactionScope(); //creates an instance of a park for test purposes Park Pt = new Park() { Code = "AIK", ParkName = "LunaLand", State = "Hyped", acreage = 9001, elevationFt = 400, MilesOfTrail = 500, NumOfCampsites = 666, Climate = "Artic", YearFounded = 1969, AnnualVisitors = 2, InspirationQuote = "The rug really tied the room together", InspirationSource = "The Dude", ParkDescription = "A magical place where Lunicorns live", EntryFee = 350, NumOfAnimals = 1 }; //sends instance of park to database _db.CreatePark(Pt); }
public HomeController(IUserSecurityDAO userDb, INPGeekDAO db, IHttpContextAccessor httpContext) : base(userDb, httpContext) { _db = db; }