Esempio n. 1
0
        public void CatpureSettingsXml()
        {
            MotionSensorSettingsTest test = new MotionSensorSettingsTest();

            test.captureId   = "111";
            test.sensitivity = (decimal)3.111;
            XmlDocument doc = test.SerialiseMe();

            Assert.IsTrue(doc.OuterXml.Count() > 0);
        }
        internal override void WriteToDatabase(CaptureTesting captureTest, MotionSensorSettingsTest motionSettings)
        {
            var db = new CaptureDbTest(ConfigurationManager.ConnectionStrings["LOCALDB"].ConnectionString);
            db.CreateDetectionSession(captureTest.SerialiseMe(), motionSettings.SerialiseMe(), captureTest.captureId);

        }
Esempio n. 3
0
 public void CatpureSettingsXml()
 {
     MotionSensorSettingsTest test = new MotionSensorSettingsTest();
     test.captureId = "111";
     test.sensitivity = (decimal)3.111;
     XmlDocument doc = test.SerialiseMe();
     Assert.IsTrue(doc.OuterXml.Count() > 0);
 }
Esempio n. 4
0
        internal override void WriteToDatabase(CaptureTesting captureTest, MotionSensorSettingsTest motionSettings)
        {
            var db = new CaptureDbTest(ConfigurationManager.ConnectionStrings["LOCALDB"].ConnectionString);

            db.CreateDetectionSession(captureTest.SerialiseMe(), motionSettings.SerialiseMe(), captureTest.captureId);
        }