示例#1
0
 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);
 }