コード例 #1
0
ファイル: MiniEmeApiTest.cs プロジェクト: kylin589/EmePro
        public void MiniEmeTest_BookCourseByUserId()
        {
            MiniEmeClient emeClient = new MiniEmeClient();
            var param = JsonHelper.ToJson(new BookCourseParamModel()
            {
                //UserId = 18160,
                //ArrangeCourseId = 1392763,
                //IsForce = false,
                //BookUserId = 18160,
                //ProductLevelId = 17,
                //ContractLevelId = 397685,
                //BookSource = 101
                // UserId = 15466,

                StudentId = 17463,
                ArrangeCourseId = 1392793,
                BookUserId = 15466,
                ProductLevelId = 15,
                ContractLevelId = 127096,
                BookSource = 100
            });
            var result = emeClient.CreateBookCourseByUserId(param);
            var jsonData = JsonHelper.FromJson<Dictionary<string, string>>(result);
            Assert.AreEqual(jsonData["ResultCode"], "000000");
            emeClient.Close();
        }
コード例 #2
0
ファイル: MiniEmeApiTest.cs プロジェクト: kylin589/EmePro
 public void MiniEmeTest_NewCreateBookCourseByStudentId()
 {
     MiniEmeClient emeClient = new MiniEmeClient();
     var param = JsonHelper.ToJson(new BookCourseParamModel()
     {
         //UserId = 115723,
         StudentId = 97196,
         ArrangeCourseId = 1400891,
         IsForce = false,
         BookUserId = 115723,
         ProductLevelId = 2,
         ContractLevelId = 406696,
         BookSource = 101
     });
     var result = emeClient.CreateBookCourseByUserId(param);
     Assert.AreEqual(result, 100);
     emeClient.Close();
 }