public void Setup()
        {
            // Mocks, stubs and UUT
            stubTransRecClient  = Substitute.For <ITransponderReceiverClient>();
            stubTrackCalculator = Substitute.For <ITrackCalculator>();
            airspace            = new MonitoredAirspace(90000, 80000, 90000, 80000, 20000, 10000);
            uut = new AirTrafficManagementSystem(airspace, stubTransRecClient, stubTrackCalculator);

            // Data sent from stubTransRecClient
            trackToSend = new Track("123456", 90000, 80000, 15000, DateTime.Now, 0, 0);
            List <Track> listToSend = new List <Track>();

            listToSend.Add(trackToSend);
            ATMSEventArgs CorrectArgs = new ATMSEventArgs();

            CorrectArgs.Tracks = listToSend;
        }
Esempio n. 2
0
 public void Setup()
 {
     date           = DateTime.Now;
     _uutAirspace   = new MonitoredAirspace(95000, 5000, 95000, 5000, 20000, 500);
     _testTrackTrue = new Track("111111", 80000, 80000, 10000, date, 300, 0);
 }