예제 #1
0
 public void GetParkByParkName()
 {
     using (TransactionScope transaction = new TransactionScope())
     {
         int        newParkId = ParkSqlDALTests.InsertFakePark(park);
         ParkSqlDAL testClass = new ParkSqlDAL(connectionString);
         ParkModel  newPark   = testClass.GetParkByParkName(park.Name);
         Assert.AreEqual(newPark.ParkId, newParkId);
     }
 }