public void LoadDetectorsFromXmlTest() { InMemoryMOEDatabase db = new InMemoryMOEDatabase(); XmlToListImporter.LoadDetectors("detectorsFor7185.Xml", db); Assert.IsTrue(db.Detectors.Count > 7); }
public void LoadSpeedEventsFromXmlTest() { InMemoryMOEDatabase db = new InMemoryMOEDatabase(); XmlToListImporter.LoadSpeedEvents("7185Speed.xml", db); Assert.IsTrue(db.Speed_Events.Count > 100); }
public void LoadApproachesFromXmlTest() { InMemoryMOEDatabase db = new InMemoryMOEDatabase(); XmlToListImporter.LoadApproaches("approachesfor7185.Xml", db); Assert.IsTrue(db.Approaches.Count > 7); }
public void LoadSignalsFromXmlTest() { InMemoryMOEDatabase db = new InMemoryMOEDatabase(); XmlToListImporter.LoadSignals("signals.Xml", db); Assert.IsTrue(db.Signals.Count > 1000); }
public void LoadControllerEventLogFromXmlTest() { var db = new InMemoryMOEDatabase(); XmlToListImporter.LoadControllerEventLog("7185Events02_01_2018.Xml", db); Assert.IsTrue(db.Controller_Event_Log.Count > 1000); }
public void AddDetectionTypesToDetectorsFromXmlTest() { InMemoryMOEDatabase db = new InMemoryMOEDatabase(); XmlToListImporter.LoadDetectors("detectorsFor7185.Xml", db); XmlToListImporter.AddDetectionTypesToDetectors("DetectorTypesforDetectorsFor7185.Xml", db); Assert.IsTrue(db.Detectors.Count > 7); Assert.IsTrue(db.Detectors.FirstOrDefault().DetectionTypeIDs.Count > 0); }
public void ApproachesAreAssignedTosignalsTest() { InMemoryMOEDatabase db = new InMemoryMOEDatabase(); XmlToListImporter.LoadSignals("signals.Xml", db); XmlToListImporter.LoadApproaches("approachesfor7185.Xml", db); foreach (var app in db.Approaches) { Assert.IsNotNull(app.Signal); } }