public void SerializeObject()
        {           
            var chuck = new People { Id = 1, Firstname = "chuck", Lastname = "norris" };
            
            var outputMessage = new StubHttpOutputMessage();

            converter.Write(chuck, ProtobufNetHttpMessageConverter.PROTO_MEDIATYPE, outputMessage);

            Assert.NotNull(outputMessage.Body);
            
            MemoryStream actual = new MemoryStream();
            byte[] expected = File.ReadAllBytes("people.data");
          
            outputMessage.Body(actual);

            Assert.AreEqual(expected, actual.ToArray());
        }
        public void SerializeObjectArray()
        {
            People[] peoples = new People[] 
            { 
                new People{ Id= 1, Firstname = "chuck", Lastname ="norris"},
                new People{ Id= 2, Firstname = "jackie", Lastname ="chan"},
                new People{ Id= 3, Firstname = "jean-claude", Lastname ="van damme"}
            };

            var outputMessage = new StubHttpOutputMessage();

            converter.Write(peoples, ProtobufNetHttpMessageConverter.PROTO_MEDIATYPE, outputMessage);

            Assert.NotNull(outputMessage.Body);

            MemoryStream actual = new MemoryStream();
            byte[] expected = File.ReadAllBytes("peopleList.data");

            outputMessage.Body(actual);

            Assert.AreEqual(expected, actual.ToArray());
        }