public void SetUp() { uut = new MonitoredPlanes(); fakeSeperationEvent = Substitute.For <ISeperationEvent>(); faketracklist = new List <ITrack>(); uut.Attach(fakeSeperationEvent); }
public void SetUp() { _monitoredPlanes = new MonitoredPlanes(); currentlist = new List <ITrack>(); _display = Substitute.For <IDisplay>(); tracksToRemove = new List <ITrack>(); _calculator = Substitute.For <ICalculator>(); othertracksToRemove = new List <ITrack>(); seperationEvent = Substitute.For <ISeperationEvent>(); _controller = new SortingPlanesController(currentlist, _display, _monitoredPlanes, tracksToRemove, _calculator, othertracksToRemove); _monitoredPlanes.Attach(seperationEvent); }
public void Setup() { receiver = Substitute.For <ITransponderReceiver>(); seperationEvent = Substitute.For <ISeperationEvent>(); trackRendition = Substitute.For <ITrackRendition>(); trackUpdater = new TrackUpdater(seperationEvent, trackRendition); trackingFiltering = new TrackingFiltering(trackUpdater); _sut = new TransponderParsing(receiver, trackingFiltering); _transponderArgsList_Success = new List <string> { "ATR423;39045;12932;14000;20151006213456789" }; _transponderArgsList_SecondEvent_Success = new List <string> { "ATR423;39045;12934;14000;20151006213457789" }; _transponderDataEventArgs_Success = new RawTransponderDataEventArgs(_transponderArgsList_Success); _transponderDataEventArgs_SecondEvent_Success = new RawTransponderDataEventArgs(_transponderArgsList_SecondEvent_Success); }
public void Setup() { receiver = Substitute.For <ITransponderReceiver>(); eventRendition = Substitute.For <IEventRendition>(); logWriter = Substitute.For <ILogWriter>(); seperationEvent = new SeperationEvent(logWriter, eventRendition); trackRendition = new TrackRendition(); trackUpdater = new TrackUpdater(seperationEvent, trackRendition); trackingFiltering = new TrackingFiltering(trackUpdater); _sut = new TransponderParsing(receiver, trackingFiltering); _transponderArgsList_Separation = new List <string> { "FAT423;39045;12932;14000;20151006213456789", "MAR423;39045;12932;14000;20151006213456789" }; _transponderArgsList_No_Separation = new List <string> { "MAR423;39045;12932;12000;20151006213456789", "FAT423;39045;12932;14000;20151006213456789" }; _transponderDataEventArgs_Separation = new RawTransponderDataEventArgs(_transponderArgsList_Separation); _transponderDataEventArgs_No_Separation = new RawTransponderDataEventArgs(_transponderArgsList_No_Separation); }
public void Setup() { eventRendition = Substitute.For <IEventRendition>(); logWriter = Substitute.For <ILogWriter>(); _uut = new SeperationEvent(logWriter, eventRendition); list1 = new List <string> { "MAR123", "50000", "50000", "1000", "20151006213456789" }; list2 = new List <string> { "FRE123", "50000", "50000", "1000", "20151006213456789" }; list3 = new List <string> { "FAT123", "50000", "50000", "1000", "20151006213456789" }; trackobject1 = new TrackObject(list1); trackobject2 = new TrackObject(list2); trackObject3 = new TrackObject(list3); trackObjectList = new List <TrackObject>(); tupleList = new TupleList <TrackObject, TrackObject>(); }
public void Setup() { seperationEvent = Substitute.For <ISeperationEvent>(); trackRendition = Substitute.For <ITrackRendition>(); _uut = new TrackUpdater(seperationEvent, trackRendition); list1 = new List <string> { "MAR123", "50000", "50000", "1000", "20151006213456789" }; list2 = new List <string> { "FRE595", "50000", "50000", "1000", "20151006213456789" }; list3 = new List <string> { "FRE595", "50050", "50050", "980", "20151006213458800" }; trackobject1 = new TrackObject(list1); trackobject2 = new TrackObject(list2); trackobject3 = new TrackObject(list3); trackObjectList = new List <TrackObject>() { trackobject3 }; }
public void Detach(ISeperationEvent observer) { observerList.Remove(observer); }
public void Attach(ISeperationEvent observer) { observerList.Add(observer); }
public TrackUpdater(ISeperationEvent seperationEvent, ITrackRendition trackRendition) { _oldTrackObjects = new List <TrackObject>(); _seperationEvent = seperationEvent; _trackRendition = trackRendition; }