public void TestConfig()
        {
            MotionSensorConfigList config = new MotionSensorConfigList();

            config.LoadTemplate();

            Assert.IsTrue(config.list.Count > 1);
        }
Beispiel #2
0
 public IHttpActionResult Get()
 {
     try
     {
         MotionSensorConfigList list = new MotionSensorConfigList();
         list.LoadTemplate();
         return(Ok(list));
     }
     catch
     {
         return(InternalServerError());
     }
 }