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 Point DeletePoint(Guid Id) { var point = _PointRepo.DeletePoint(Id); return(point); }