예제 #1
0
        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));
            }
        }
예제 #2
0
        public Point DeletePoint(Guid Id)
        {
            var point = _PointRepo.DeletePoint(Id);

            return(point);
        }