예제 #1
0
        public void LoadDetectorsFromXmlTest()
        {
            InMemoryMOEDatabase db = new InMemoryMOEDatabase();

            XmlToListImporter.LoadDetectors("detectorsFor7185.Xml", db);

            Assert.IsTrue(db.Detectors.Count > 7);
        }
예제 #2
0
        public void LoadSpeedEventsFromXmlTest()
        {
            InMemoryMOEDatabase db = new InMemoryMOEDatabase();

            XmlToListImporter.LoadSpeedEvents("7185Speed.xml", db);

            Assert.IsTrue(db.Speed_Events.Count > 100);
        }
예제 #3
0
        public void LoadApproachesFromXmlTest()
        {
            InMemoryMOEDatabase db = new InMemoryMOEDatabase();

            XmlToListImporter.LoadApproaches("approachesfor7185.Xml", db);

            Assert.IsTrue(db.Approaches.Count > 7);
        }
예제 #4
0
        public void LoadSignalsFromXmlTest()
        {
            InMemoryMOEDatabase db = new InMemoryMOEDatabase();

            XmlToListImporter.LoadSignals("signals.Xml", db);

            Assert.IsTrue(db.Signals.Count > 1000);
        }
예제 #5
0
        public void LoadControllerEventLogFromXmlTest()
        {
            var db = new InMemoryMOEDatabase();

            XmlToListImporter.LoadControllerEventLog("7185Events02_01_2018.Xml", db);

            Assert.IsTrue(db.Controller_Event_Log.Count > 1000);
        }
예제 #6
0
        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);
        }
예제 #7
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);
            }
        }