Ejemplo n.º 1
0
        public void TestModuleBLL()
        {
            ModuleBLL bll = new ModuleBLL(new ModuleDAL());

            Module module11 = new Module("stationA", new SensorAddress("aa.bb"), "des1", 2, 3);

            bll.Add(module11);

            Module module12 = new Module("stationB", new SensorAddress("aa.bb"), "des1", 2, 3);

            bll.Delete(module12);

            Module module13 = new Module("stationA", new SensorAddress("aa.bb"), "des1", 2, 3);
            Module module14 = new Module("stationA", new SensorAddress("aa.CC"), "des1", 2, 3);

            bll.Modify(module13, module14);

            int ret = bll.ExcuteSqlStr("select * from module");

            List <object> list1 = bll.GetAllObjs();

            List <object> list2 = bll.GetObjsBySQL("select * from module", null);
        }