public void SetUp()
 {
     receiver      = Substitute.For <ITransponderReceiver>();
     track         = new Track();
     parseTracks   = new TrackParsing(track);
     write         = Substitute.For <WriteToConsole>();
     filter        = new FilterFlightLimits();
     collision     = Substitute.For <CheckCollision>();
     comparetracks = Substitute.For <ICompareTracks>();
     _mainreceiver = new MainReceiver(receiver, filter, write, collision, comparetracks, parseTracks);
 }
 public void SetUp()
 {
     receiver    = Substitute.For <ITransponderReceiver>();
     track       = new Track();
     parseTracks = new TrackParsing(track);
     write       = Substitute.For <IWrite>();
     filter      = new FilterFlightLimits();
     collision   = Substitute.For <CheckCollision>();
     _compare    = new CompareTracks();
     _reciever   = new MainReceiver(receiver, filter, write, collision, _compare, parseTracks);
 }
 public void SetUp()
 {
     _receiver       = Substitute.For <ITransponderReceiver>();
     _track          = new Track();
     _parseTracks    = new TrackParsing(_track);
     _writeToConsole = Substitute.For <WriteToConsole>();
     _filter         = new FilterFlightLimits();
     _collision      = Substitute.For <CheckCollision>();
     _compare        = new CompareTracks();
     _velocityCalc   = new VelocityCalc();
     _courseCalc     = new CourseCalc();
     _reciever       = new MainReceiver(_receiver, _filter, _write, _collision, _compare, _parseTracks);
 }
 public void SetUp()
 {
     _receiver       = Substitute.For <ITransponderReceiver>();
     _track          = new Track();
     _parseTracks    = new TrackParsing(_track);
     _filter         = new FilterFlightLimits();
     _collision      = new CheckCollision();
     _comparetracks  = new CompareTracks();
     _writeToConsole = Substitute.For <WriteToConsole>();
     _alarm          = Substitute.For <ConflictAlarm>();
     _mainreciever   =
         new MainReceiver(_receiver, _filter, _write, _collision, _comparetracks, _parseTracks);
 }
Beispiel #5
0
        public void SetUp()
        {
            _transponderReceiver = Substitute.For <ITransponderReceiver>();
            _parseTrack          = Substitute.For <ITrackParsing>();
            _filter          = Substitute.For <IFilterFlightLimits>();
            _write           = Substitute.For <IWrite>();
            _trackObjectList = Substitute.For <List <ITrack> >();
            _track           = Substitute.For <ITrack>();
            _uut             = new MainReceiver(_transponderReceiver, _filter, _write, _compare, _conflict, _parseTrack);

            var track      = "AIM500;40000;50000;60000;20161011221035800";
            var trackliste = new List <string>();

            trackliste.Add(track);
        }
Beispiel #6
0
        static void Main(string[] args)
        {
            IWrite              writer         = new WriteToConsole();
            CheckCollision      checkcollision = new CheckCollision();
            ITrack              track          = new Track();
            ITrackParsing       parseTracks    = new TrackParsing(track);
            ICompareTracks      comparetracks  = new CompareTracks();
            IFilterFlightLimits filter         = new FilterFlightLimits();
            var myReceiver = TransponderReceiverFactory.CreateTransponderDataReceiver();


            var receiver = new MainReceiver(myReceiver, filter, writer, checkcollision, comparetracks, parseTracks);

            Console.ReadKey();
        }