public void SetUp()
 {
     _airspace   = Substitute.For <IAirspace>();
     _controller = Substitute.For <ISortingPlanesController>();
     _tracksInAirspaceController = new TracksInAirspaceController(_airspace, _controller);
     _receiver = Substitute.For <ITransponderReceiver>();
     _driver   = new ReceivedDataController(_receiver, _tracksInAirspaceController);
     track1    = new Track()
     {
         Tag         = "ABC123",
         XCoordinate = 10000,
         YCoordinate = 10000,
         Altitude    = 1000,
     };
 }
 public void SetUp()
 {
     _airspace   = new Airspace();
     _controller = Substitute.For <ISortingPlanesController>();
     _tracksInAirspaceController = new TracksInAirspaceController(_airspace, _controller);
     track1 = new Track()
     {
         Tag         = "ABC123",
         XCoordinate = 10000,
         YCoordinate = 10000,
         Altitude    = 2000,
     };
     track2 = new Track()
     {
         Tag         = "DEF456",
         XCoordinate = 10,
         YCoordinate = 10,
         Altitude    = 4,
     };
 }
        static void Main(string[] args)
        {
            //Det her er for at constructor-injecte SortingPlanesController
            IDisplay                 display           = new Display();
            ILogFile                 logfile           = new LogFile();
            IMonitoredPlanes         monitor           = new MonitoredPlanes();
            List <ITrack>            currentlist       = new List <ITrack>();
            List <ITrack>            removelist        = new List <ITrack>();
            List <ITrack>            otherRemoveList   = new List <ITrack>();
            ISortingPlanesController sortingcontroller = new SortingPlanesController(currentlist, display, monitor, removelist, new Calculator(), otherRemoveList);

            //Det her er for at constructor-injecte TracksInAirspaceController
            IAirspace airspace = new Airspace();
            ITracksInAirSpaceController controllerlist = new TracksInAirspaceController(airspace, sortingcontroller);

            IReceivedDataController controller = new ReceivedDataController(TransponderReceiverFactory.CreateTransponderDataReceiver(), controllerlist);

            controller.StartReceiving();

            Console.ReadKey();
        }