public void DeserializeObjectArray()
        {
            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 inputMessage = new StubHttpInputMessage();
            inputMessage.Body = new MemoryStream(File.ReadAllBytes("peopleList.data"));

            var actual = converter.Read<People[]>(inputMessage);

            Assert.NotNull(actual);
            CollectionAssert.AreEqual(peoples, actual);
        }
        public void DeserializeObject()
        {
            var chuck = new People { Id = 1, Firstname = "chuck", Lastname = "norris" };

            var inputMessage = new StubHttpInputMessage();
            inputMessage.Body = new MemoryStream(File.ReadAllBytes("people.data"));

            People actual = converter.Read<People>(inputMessage);

            Assert.NotNull(actual);

            Assert.AreEqual(chuck, actual);
        }