public void TestPark() { var park = CreatePark("Mt. Airy"); var parks = _db.GetParks(); park.Id = _db.AddPark(park); var newParks = _db.GetParks(); Assert.AreEqual(parks.Count + 1, newParks.Count); bool foundPark = false; foreach (var newPark in newParks) { if (newPark.Id == park.Id) { foundPark = true; } } Assert.IsTrue(foundPark); }
public void TestAddPark() { int test = _db.AddPark(); Assert.AreNotEqual(0, test, "Park Not Added"); }