public void MiniEmeTest_NewCreateWebchatBookCourseByUserId() { MiniEmeClient emeClient = new MiniEmeClient(); var jsonParam = JsonHelper.ToJson(new BookCourseParamModel() { UserId = 146968, ArrangeCourseId = 1392765, BookUserId = 146968, ProductLevelId = 1, ContractLevelId = 497952, BookSource = 101 }); var result = emeClient.BookCourseByUserId(jsonParam); Assert.AreEqual(result, 100); emeClient.Close(); }
public void MiniEmeTest_NewBookCourseByUserId() { MiniEmeClient emeClient = new MiniEmeClient(); var param = JsonHelper.ToJson(new BookCourseParamModel() { UserId = 146296, ArrangeCourseId = 1392491,//1392635, IsForce = false, BookUserId = 146296, ProductLevelId = 2, ContractLevelId = 495270, }); var result = emeClient.BookCourseByUserId(param); var jsonData = JsonHelper.FromJson<Dictionary<string, string>>(result); Assert.AreEqual(jsonData["ResultCode"], "000000"); emeClient.Close(); }