Beispiel #1
0
        public void read_value()
        {
            var xmlInput = new XmlFormatterModel()
            {
                FirstName = "Jeremy",
                LastName  = "Miller"
            };

            theRequest.Body.XmlInputIs(xmlInput);

            var xmlOutput = theFormatter.Read <XmlFormatterModel>(context);

            xmlOutput.ShouldNotBeTheSameAs(xmlInput);

            xmlOutput.FirstName.ShouldBe(xmlInput.FirstName);
            xmlOutput.LastName.ShouldBe(xmlInput.LastName);
        }
        public void read_value()
        {
            var xmlInput = new XmlFormatterModel()
            {
                FirstName = "Jeremy",
                LastName  = "Miller"
            };

            streamingData.XmlInputIs(xmlInput);

            var xmlOutput = theFormatter.Read <XmlFormatterModel>();

            xmlOutput.ShouldNotBeTheSameAs(xmlInput);

            xmlOutput.FirstName.ShouldEqual(xmlInput.FirstName);
            xmlOutput.LastName.ShouldEqual(xmlInput.LastName);
        }