示例#1
0
        public void ExecuteParameterWithObjectParamters()
        {
            Incubator inc = new Incubator();

            inc.Set(new Echo());
            EchoData data = new EchoData();

            data.BoolProperty   = true;
            data.StringProperty = "dlhsddfflk";
            data.IntProperty    = 888;

            JsonRpcRequest  request  = JsonRpcRequest.Create <Echo>(inc, "TestObjectParameter", data, "some addditional stuff");
            JsonRpcResponse response = request.Execute();

            Expect.IsNotNull(response.Result);
            OutLine(response.Result.ToString(), ConsoleColor.Cyan);
        }