public void GetPanoramicById()
 {
     using (TransactionScope transaction = new TransactionScope())
     {
         int             newParkId          = ParkSqlDALTests.InsertFakePark(park);
         int             newTrailId         = TrailSqlDALTests.InsertFakeTrail(trail, newParkId);
         int             newPanoramicId     = PanoramicSqlDALTests.InsertFakePanoramic(panoramicImage, newTrailId);
         PanoramicSqlDAL testClass          = new PanoramicSqlDAL(connectionString);
         PanoramicModel  newPanoramicImages = testClass.GetPanoramicById(newPanoramicId);
         Assert.AreEqual(newPanoramicImages.PanoramicId, newPanoramicId);
     }
 }
 public void GetAllPanoramics()
 {
     using (TransactionScope transaction = new TransactionScope())
     {
         int                   newParkId          = ParkSqlDALTests.InsertFakePark(park);
         int                   newTrailId         = TrailSqlDALTests.InsertFakeTrail(trail, newParkId);
         int                   newPanoramicId     = PanoramicSqlDALTests.InsertFakePanoramic(panoramicImage, newTrailId);
         PanoramicSqlDAL       testClass          = new PanoramicSqlDAL(connectionString);
         List <PanoramicModel> newPanoramicImages = testClass.GetAllPanoramics();
         Assert.IsTrue(newPanoramicImages.Select(panoramic => panoramic.PanoramicId).Contains(newPanoramicId));
     }
 }