/// <exclude/> public PointClass MakePoint(int x, int y) { PointClass retVal = new PointClass(); retVal.Int = x + y; retVal.Double = x * y; retVal.Shape = new Point(x, y); retVal.Shape.SRID = -1; return retVal; }
public void TestBatchInsert() { try { IList<PointClass> points = new List<PointClass>(); PointClass pc1 = new PointClass(); pc1.Shape = new Point(10, 10); PointClass pc2 = new PointClass(); points.Add(pc1); pc1.Shape = new Point(20, 20); points.Add(pc2); _pointDao.Insert(points); } finally { // Reset the points to the "normal" state so other tests don't fail. SetupPoints(); } }