Exemple #1
0
        public void GetTongJiInfoTest()
        {
            //  string ConnectionString = string.Empty; // TODO: 初始化为适当的值
            DBLendingTjInfo target          = new DBLendingTjInfo(connstr); // TODO: 初始化为适当的值
            string          strWorkShopGUID = string.Empty;                 // TODO: 初始化为适当的值

            strWorkShopGUID = "3b50bf66-dabb-48c0-8b6d-05db80591090";
            List <LendingTjInfo> expected = null; // TODO: 初始化为适当的值
            List <LendingTjInfo> actual;

            actual = target.GetTongJiInfo(strWorkShopGUID);
            //Assert.AreEqual(expected, actual);
            Assert.IsNotNull(actual);
            // Assert.Inconclusive("验证此测试方法的正确性。");
        }
Exemple #2
0
        public Get_OutGetTongJiInfo GetTongJiInfo(string data)
        {
            Get_OutGetTongJiInfo json = new Get_OutGetTongJiInfo();

            try
            {
                Get_InGetTongJiInfo input = Newtonsoft.Json.JsonConvert.DeserializeObject <Get_InGetTongJiInfo>(data);
                DBLendingTjInfo     db    = new DBLendingTjInfo(ConData.WebSiteConnectionString);
                LendingTjInfos      l     = new LendingTjInfos();
                l.lendingTjList = db.GetTongJiInfo(input.WorkShopGUID);
                json.data       = l;
                json.result     = "0";
                json.resultStr  = "返回成功";
            }
            catch (Exception ex)
            {
                json.result    = "1";
                json.resultStr = "提交失败:" + ex.Message;
            }
            return(json);
        }