示例#1
0
 public override void Update(MovableTarget target)
 {
     base.Update(target);
     if (IsStartUpVerify && !_verify.Update(target.Lon, target.Lat, target.UpdateTime))
     {
         LogService.Error("目标移动距离验证失败!" + this.GetDescription());
     }
 }
示例#2
0
 public void TestAbNormalMovement()
 {
     _verify = new MovableTargetVerify();
     Assert.IsTrue(_verify.Update(121.31, 31.24, new DateTime(2015, 1, 29, 9, 0, 0)));
     Assert.IsFalse(_verify.Update(121.31, 31.243, new DateTime(2015, 1, 29, 9, 0, 3)));
 }