public void ZendeskDevice_Roundtrips()
        {
            // Arrange
            JObject data = EmbeddedResource.ReadAsJObject("Microsoft.AspNet.WebHooks.Messages.ZendeskPostMessage.json");
            ZendeskDevice expected = new ZendeskDevice
            {
                Identifier = "oiuytrdsdfghjk",
                DeviceType = "ios"
            };

            // Act
            ZendeskDevice actual = data["devices"][0].ToObject<ZendeskDevice>();

            // Assert
            string expectedJson = JsonConvert.SerializeObject(expected);
            string actualJson = JsonConvert.SerializeObject(actual);
            Assert.Equal(expectedJson, actualJson);
        }
        public void ZendeskDevice_Roundtrips()
        {
            // Arrange
            JObject       data     = EmbeddedResource.ReadAsJObject("Microsoft.AspNet.WebHooks.Messages.ZendeskPostMessage.json");
            ZendeskDevice expected = new ZendeskDevice
            {
                Identifier = "oiuytrdsdfghjk",
                DeviceType = "ios"
            };

            // Act
            ZendeskDevice actual = data["devices"][0].ToObject <ZendeskDevice>();

            // Assert
            string expectedJson = JsonConvert.SerializeObject(expected);
            string actualJson   = JsonConvert.SerializeObject(actual);

            Assert.Equal(expectedJson, actualJson);
        }