public void EFListSightingsById(int sightingID, bool expected) { EFSightingRepo repo = new EFSightingRepo(); Sighting sighting = repo.GetSightingsById(sightingID); bool result = !(sighting.SightingDescription == null); Assert.AreEqual(result, expected); }
public void EFListSightings(bool expected) { EFSightingRepo repo = new EFSightingRepo(); List <Sighting> list = repo.GetAllSightings().ToList(); bool result = list.Count > 0; Assert.AreEqual(result, expected); }