Ejemplo n.º 1
0
 public void TestSetup()
 {
     _fakeValidator         = Substitute.For <IValidateEvent>();
     _fakeConditionDetector = Substitute.For <IConditionDetector>();
     _fakeOutputter         = Substitute.For <IOutputter>();
     _fakeUpdater           = Substitute.For <IUpdater <List <ITrack> > >();
     _uutAirTrafficMonitor  = new AirTrafficMonitor(_fakeValidator, _fakeConditionDetector, _fakeOutputter, _fakeUpdater);
 }
        public void TestSetup()
        {
            _fakeCondition = Substitute.For <IConditionStrategy <ITrack> >();
            var conditionList = new List <IConditionStrategy <ITrack> >()
            {
                _fakeCondition
            };

            _uutConditionDetector = new AirspaceTrackConditionDetector(conditionList);
        }
Ejemplo n.º 3
0
 public AirTrafficMonitor(IValidateEvent validator, IConditionDetector conditionDetector, IOutputter outputter, IUpdater <List <ITrack> > updater)
 {
     _validator = validator;
     _validator.ValidationCompleteEventHandler += Update;
     _conditionDetector = conditionDetector;
     _conditionDetector.ConditionsHandler += ConditionDetector_ConditionsHandler;
     _outputter = outputter;
     _updater   = updater;
     Airspace   = new Airspace();
     Conditions = new List <ConditionEventArgs>();
 }