public void GetPoints() { PointRepository pointRepository = new PointRepository(); Point[] points = pointRepository.GetAllPoints(); Assert.IsTrue(points != null); }
public void DeletePoint() { PointRepository pointRepository = new PointRepository(); List <Point> points = pointRepository.GetAllPoints().ToList(); Point point = new Point(); if (points.Exists(p => p.Name == "Point Test Updated")) { point.Id = points.FirstOrDefault(p => p.Name == "Point Test Updated").Id; point.Name = points.FirstOrDefault(p => p.Name == "Point Test Updated").Name; Assert.IsTrue(pointRepository.DeletePoint(point)); } }
public List <Point> GetAllPoints(float minLat, float minLng, float maxLat, float maxLng) { return(_PointRepo.GetAllPoints(minLat, minLng, maxLat, maxLng)); }
public Point[] GetAllPoints() { return(pointRepository.GetAllPoints()); }