Example #1
0
 public DecoderProviderTest()
 {
     _myDecoder = new MyDefaultDecoder();
     _provider = new FormDecoderProvider();
     _provider.Add(_myDecoder);
     _provider.Add(new XmlDecoder());
     _stream = new MemoryStream();
     StreamWriter writer = new StreamWriter(_stream);
     writer.WriteLine("<user><firstname>jonas</firstname></user>");
     writer.Flush();
     _stream.Seek(0, SeekOrigin.Begin);
 }
Example #2
0
        public DecoderProviderTest()
        {
            _myDecoder = new MyDefaultDecoder();
            _provider  = new FormDecoderProvider();
            _provider.Add(_myDecoder);
            _provider.Add(new XmlDecoder());
            _stream = new MemoryStream();
            StreamWriter writer = new StreamWriter(_stream);

            writer.WriteLine("<user><firstname>jonas</firstname></user>");
            writer.Flush();
            _stream.Seek(0, SeekOrigin.Begin);
        }