예제 #1
0
        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);
        }
예제 #2
0
        public void EFListSightings(bool expected)
        {
            EFSightingRepo  repo   = new EFSightingRepo();
            List <Sighting> list   = repo.GetAllSightings().ToList();
            bool            result = list.Count > 0;

            Assert.AreEqual(result, expected);
        }