[TestMethod] public void LoadsTestLayout() { ILayoutRepository repository = new TestRepository(); var target = repository.GetLayout("test"); Assert.AreEqual(3, target.Stations.Count()); Assert.AreEqual(target.Station("G").Stretches.First().End.Station, target.Station("Yb")); }
public void LoadsTestTimetable() { ITimetableRepository repository = new TestRepository(); var target = repository.GetTimetable("scenario1"); Assert.AreEqual(2, target.Trains.Count()); Assert.AreEqual(3, target.Stations.Count()); }