public void SetUp()
        {
            var json = "{Name:'Max', Age:8, Nested:{Order:5}, Array:[{Order:0}, {Order:1}, {Order:2}]}".Replace("'", "\"");

            var reader = new NewtonSoftBindingReader<JsonTarget>(null, ObjectResolver.Basic());

            theResult = reader.ReadFromJson(json);
        }
        public void SetUp()
        {
            var json = "{Name:'Max', Age:8, Nested:{Order:5}, Array:[{Order:0}, {Order:1}, {Order:2}]}".Replace("'", "\"");

            var reader = new NewtonSoftBindingReader <JsonTarget>(null, ObjectResolver.Basic());

            theResult = reader.ReadFromJson(json);
        }
        public string post_json_target(JsonTarget target)
        {
            LastTarget = target;

            return "ok";
        }
        public void SetUp()
        {
            var json = "{Name:'Max', Age:8, Nested:{Order:5}, Array:[{Order:0}, {Order:1}, {Order:2}]}".Replace("'", "\"");

            JsonTargetEndpoint.LastTarget = null;

            using (var server = FubuApplication.DefaultPolicies().StructureMap().RunInMemory())
            {
                server.Scenario(_ => {
                    _.Post.Input<JsonTarget>();
                    _.Request.Body.JsonInputIs(json);
                    _.Request.ContentType("text/json");

                });
            }

            theResult = JsonTargetEndpoint.LastTarget;
        }