public void GetCampgroundByIDTest() { // Arrange ICampgroundDAO dao = new CampgroundSqlDAO(connection); // Act Campground c = dao.GetCampgroundByID(4); // Assert Assert.AreEqual("Devil's Garden", c.Name); Assert.IsNull(dao.GetCampgroundByID(9)); }
public void GetCampgroundByIDTest() { // Arrange ICampgroundDAO dao = new CampgroundSqlDAO(connection); // Act Campground c = dao.GetCampgroundByID(4); // Assert Assert.AreEqual("Devil's Garden", c.Name); Assert.IsNull(dao.GetCampgroundByID(9)); }