Beispiel #1
0
        public void add_reader_happy_path()
        {
            var node = new InputNode(typeof(Address));

            node.AllowHttpFormPosts = false;

            var reader = node.AddReader <FakeAddressReader>();

            node.Readers.Single().ShouldBeTheSameAs(reader);

            reader.InputType.ShouldEqual(typeof(Address));
            reader.ReaderType.ShouldEqual(typeof(FakeAddressReader));
        }