public void GetParkByIdTest() { // Arrange ParkDAL parkDal = new ParkDAL(connectionString); // Act (create blank list of Park ite) List <Park> parks = new List <Park>(); parks.Add(parkDal.GetParkById("AAA")); // Assert Assert.AreEqual(1, parks.Count); // We should only have one park in the list Assert.AreEqual("AAA", parks[0].ParkCode); // We created the mock park above and know the park code to look for }
public void GetParkById_Test() { Park park = dal.GetParkById(1); Assert.IsNotNull(park); }