예제 #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);

        }
예제 #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);
 }
예제 #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);
        }