コード例 #1
0
 public void SetUp()
 {
     _shapeCollectionHelper = new ShapeCollectionHelper();
     _testShapes            = new List <Shape>
     {
         new Shape
         {
             ShapeId       = "1",
             PointSequence = 1,
         },
         new Shape
         {
             ShapeId       = "1",
             PointSequence = 3,
         },
         new Shape
         {
             ShapeId       = "1",
             PointSequence = 2,
         },
         new Shape
         {
             ShapeId       = "2",
             PointSequence = 1,
         },
         new Shape
         {
             ShapeId       = "2",
             PointSequence = 2,
         },
         new Shape
         {
             ShapeId       = "3",
             PointSequence = 1,
         },
         new Shape
         {
             ShapeId       = "3",
             PointSequence = 3,
         },
         new Shape
         {
             ShapeId       = "3",
             PointSequence = 2,
         }
     };
 }
コード例 #2
0
 public ShapeImporterService(IGenericRepository <Shape> repository, IGenericRepository <ShapeBase> shapeBaseRepository, IEntityBuilder <Shape> entityBuilder, ILogger <ImporterService <Shape> > logger, IShapeCollectionHelper shapeCollectionHelper) : base(repository, entityBuilder, logger)
 {
     _shapeBaseRepository   = shapeBaseRepository;
     _shapeCollectionHelper = shapeCollectionHelper;
 }