static void Main(string[] args) { TrackConverter trackConverter = new TrackConverter(TransponderReceiverFactory.CreateTransponderDataReceiver()); Sorter sorter = new Sorter(trackConverter); TrackSpeed ts = new TrackSpeed(); TrackCompassCourse tcc = new TrackCompassCourse(); CheckForSeparationEvent checker = new CheckForSeparationEvent(); CreateWarning warner = new CreateWarning(checker); LogSeparationEvent logger = new LogSeparationEvent(checker); Controller controller = new Controller(sorter, ts, tcc, checker, warner, logger); Console.ReadLine(); }
private void UpdateUi() { TxtCourse.Text = Course.ToString(CultureInfo.InvariantCulture); TxtSpeed.Text = Speed.ToString(CultureInfo.InvariantCulture); TxtAverage.Text = AverageSpeed.ToString(CultureInfo.InvariantCulture); TxtTrackSpeed.Text = TrackSpeed.ToString(CultureInfo.InvariantCulture); TxtTime.Text = Time.ToString("HH:mm:ss"); TxtSattelites.Text = Sattelites.ToString(CultureInfo.InvariantCulture); TxtTargetSpeed.Text = TargetSpeed.ToString(CultureInfo.InvariantCulture); TxtToleranceKmh.Text = ToleranceSpeed.ToString(CultureInfo.InvariantCulture); TxtTimeFactor.Text = ToleranceSeconds.ToString(CultureInfo.InvariantCulture); }
public void SetUp() { _receiver = Substitute.For <ITransponderReceiver>(); _converter = new TrackConverter(_receiver); _sorter = new Sorter(_converter); _ts = new TrackSpeed(); _tcc = new TrackCompassCourse(); _checker = Substitute.For <ISeperationEventChecker>(); _warningCreator = Substitute.For <ISeperationEventHandler>(); _logger = Substitute.For <ISeperationEventLogger>(); _controller = new Controller(_sorter, _ts, _tcc, _checker, _warningCreator, _logger); _fakeRawArgs = new RawTransponderDataEventArgs(new List <string>() { "Fly1;88000;88000;6000;20180420222222222", "Fly2;72000;91000;19999;20180420222222222", "Fly3;86000;86000;6500;20180420222222222" }); _fakeRawArgs2 = new RawTransponderDataEventArgs(new List <string>() { "Fly1;86000;86000;6000;20180420223222222", "Fly2;72000;91000;19999;20180420223222222", "Fly3;86000;86000;6500;20180420223222222" }); }
private void Awake() { trackSpeed = GetComponent <TrackSpeed>(); }
public void SetUp() { _uut = new TrackSpeed(); horizontalVelocity = 0; }