Exemple #1
0
        public void MiniEmeTest_CreateCourseCheckIn()
        {
            MiniEmeClient emeClient = new MiniEmeClient();
            var jsonParam = "[{\"BookRecordId\":\"8247170\",\"CheckinFlag\":\"true\"}]";

            //    JsonHelper.ToJson(new List<TeacherCourseRateParamModel>
            //{
            //    new TeacherCourseRateParamModel(){
            //    BookRecordId = 8002056,
            //    IsNoShow = true,

            //    },
            //    //new TeacherCourseRateParamModel(){
            //    //BookRecordId = 7123477,
            //    //IsNoShow = false,
            //    //TotalScore = 3,
            //    //ItemsInfo = "4|3",
            //    //Comments = "test by api",
            //    //CreateBy = 138513
            //    //}
            //});

            var result = emeClient.CreateCourseCheckIn(jsonParam);
            var jsonData = JsonHelper.FromJson<Dictionary<string, string>>(result);
            Assert.AreEqual(jsonData["ResultCode"], "000000");
            emeClient.Close();
        }