public void Setup() { _track = Substitute.For <TrackData>(); _list = new List <ITracks>(); _printer = Substitute.For <IPrints>(); _uut = new Monitor(); }
public void SetUp() { _decoder = Substitute.For <ITrackDecoding>(); //Rigtige Klasser _Track1 = new TrackData() { Tag = "TAG1", X = 10000, Y = 21000, Altitude = 3000, Course = 0, Velocity = 100, FormattedTimestamp = "14-05-2018 17:18 53 4000" }; _Track2 = new TrackData() { Tag = "TAG1", X = 50000, Y = 20000, Altitude = 3000, Course = 0, Velocity = 100, FormattedTimestamp = "14-05-2018 17:18 53 1111" }; _Track3 = new TrackData() { Tag = "TAG1", X = 100, Y = 21000, Altitude = 3000, Course = 0, Velocity = 100, FormattedTimestamp = "14-05-2018 17:18 53 4000" }; _CalcDistance = new CalcDistance(); _calcCourse = new CalcCourse(); _calcVelocity = new CalcVelocity(); _monitor = new Monitor(); _uut = new Update(_decoder); //Lister _Tracklist = new List <ITracks>() { _Track1, _Track2 }; _fakeTransponderData = new TrackDataEventArgs(_Tracklist); //Substitueret _logger = Substitute.For <ILog>(); _output = Substitute.For <IOutput>(); _print = Substitute.For <IPrints>(); _Separation = Substitute.For <ISeparation>(); _decoder.TrackDataReadyForCalculation += (o, args) => _Tracklist = args.TrackData; }
public void Setup() { _print = Substitute.For <IPrints>(); _uut = new Output(); }