Esempio n. 1
0
        public void ClearAll()
        {
            var node = new InputNode(typeof(Address));

            node.Add(new NewtonsoftJsonFormatter());
            node.Add(typeof(ModelBindingReader <>));

            node.ClearAll();

            node.Explicits.Any().ShouldBeFalse();
        }
Esempio n. 2
0
        public void ClearAll()
        {
            var node = new InputNode(typeof(Address));

            node.Add(new JsonSerializer());
            node.Add(typeof(ModelBindingReader <>));

            node.ClearAll();

            node.Explicits.Any().ShouldBeFalse();
        }
Esempio n. 3
0
        public void ClearAll()
        {
            var node = new InputNode(typeof(Address));

            node.AddFormatter <JsonFormatter>();
            node.AllowHttpFormPosts = true;

            node.ClearAll();

            node.Readers.Any().ShouldBeFalse();
            node.AllowHttpFormPosts.ShouldBeFalse();
        }