Beispiel #1
0
        public void Test2()
        {
            IStudentService student = Lark.Core.Lark.Wrap <IStudentService>("http://*****:*****@"/api/student/add?ID=1&Name=name&rank=23");

            //--------------------------------------
            student.Add2(new IStudentService.Student()
            {
                ID = 1, Name = "name", rank = 23
            }, new IStudentService.StudentClass()
            {
            }, new IStudentService.Remark()
            {
            });
            wrap = (WrapBase)student;
            httpRequestHeaders = wrap.MyHttpRequestMessagea.Headers;
            httpContent        = wrap.MyHttpRequestMessagea.Content;
            System.Console.WriteLine(wrap.GetRequestCreURL());

            //Assert.Catch( delegate  {} ,"",null);
        }