public void OnDataReady(object sender, RawTransponderDataEventArgs e) { var datalist = e.TransponderData; var planeList = new List <IPlane>(); //DetectSeparationEvent detectSeparationEvent = new DetectSeparationEvent(); for (int i = 0; i < datalist.Count; i++) { var plane = Decode(datalist[i]); planeList.Add(plane); } _CheckPlanes.CheckAirspace(planeList); detectSeparationEvent.CheckSepEvent(planeList); }
public void Airspace_PlaneIsInAirspace() { uut.CheckAirspace(fakePlanes); Assert.That(fakePlanes.Count, Is.EqualTo(1)); }