Ejemplo n.º 1
0
        public void GetDayDataTest()
        {
            IGasDataDisplayBLL    dis  = new GasDataDisplayBLLImpl();
            Response <GasDayData> data = dis.GetDayDataByID(0);;

            Assert.AreEqual("0", data.list[0].ID);
        }
Ejemplo n.º 2
0
        public void TestGetDayDataByPollutionPointID()
        {
            IGasDataDisplayBLL    test = new GasDataDisplayBLLImpl();
            Response <GasDayData> res  = test.getDayDataByPollutionPointID(1);

            Assert.IsTrue(res.isSuccess, "true");
        }
Ejemplo n.º 3
0
        public ActionResult getGasDayData(FormCollection form)
        {
            IGasDataDisplayBLL    gasDataBLL = new GasDataDisplayBLLImpl();
            Response <GasDayData> res        = gasDataBLL.GetDayDataByID(0);;
            List <GasDayData>     list       = res.list;

            //bll.GetListByPage2(PageNumber, PageSize, out TotalCount, form, SortField, SortOrder);
            return(Content(true, list, ResultType.Json));
        }