Esempio n. 1
0
        private List <Position> GenerateMockPositions(Bll positionBll)
        {
            int             tagPowerCount = int.Parse(TbMockTagPowerCount.Text); //标签倍数 2*100=200
            var             tags          = positionBll.InitTagPosition(tagPowerCount);
            int             mockCount     = int.Parse(TbMockPosPowerCount.Text); //位置信息倍数 200*100=20000
            List <Position> positions     = PositionMocker.GetMockPosition(tags, mockCount);

            return(positions);
        }
Esempio n. 2
0
        private void TestInsertData()
        {
            using (var positionBll = GetLocationBll())
            {
                Stopwatch watch = new Stopwatch();
                watch.Start();

                positionBll.InitTagPosition(0);

                int mockCount = int.Parse(TbMockCount1.Text);

                List <Position> positions = PositionMocker.GetMockPosition("00002", mockCount);
                positionBll.AddPositions(positions);

                watch.Stop();
                Logs.WriteLogLeft("用时:" + watch.Elapsed);
            }
        }