public void SetUp() { _track1 = new Track(); _track2 = new Track(); _track3 = new Track(); _tracklist = new List <Track>(); _sepList = new List <Condition>(); //Making fakes (Stubs and mocks) _fakeConditionChecker = Substitute.For <IConditionChecker>(); _fakeFilter = Substitute.For <IFilter>(); _fakeLogCondition = Substitute.For <ILogCondition>(); _uut = new DisplaySeparator(_fakeFilter, _fakeConditionChecker); }
public Separation(Track t1, Track t2, int id, ILogCondition log = null, bool logCondition = false) { Track1 = t1; Track2 = t2; Type = "Separation"; Timestamp = t1.Timestamp; Tag1 = t1.Tag; Tag2 = t2.Tag; Id = "S" + id.ToString(); _logged = logCondition; if (log == null) { log = new LogSeparationCondition(); } LogCondition = log; if (_logged) { LogOnConstruction(); } }