Describes an Instagram WebHook event notification. For details about Instagram WebHooks, please see https://instagram.com/developer/realtime/.
        public void InstagramNotificationCollection_Roundtrips()
        {
            // Arrange
            JArray data = EmbeddedResource.ReadAsJArray("Microsoft.AspNet.WebHooks.Messages.NotificationCollectionMessage.json");

            InstagramNotification[] expected = new InstagramNotification[]
            {
                new InstagramNotification
                {
                    ChangedAspect  = "media",
                    Object         = "user",
                    UserId         = "2174967354",
                    SubscriptionId = "22362655",
                    Data           = new InstagramNotificationData
                    {
                        MediaId = "1213184719641169505_2174967354"
                    }
                },
                new InstagramNotification
                {
                    ChangedAspect  = "media",
                    Object         = "user",
                    UserId         = "3174967354",
                    SubscriptionId = "22362655",
                    Data           = new InstagramNotificationData
                    {
                        MediaId = "1213184719641169515_3174967354"
                    }
                },
            };

            // Act
            InstagramNotificationCollection actual = data.ToObject <InstagramNotificationCollection>();

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

            Assert.Equal(expectedJson, actualJson);
        }
        public void InstagramNotificationCollection_Roundtrips()
        {
            // Arrange
            JArray data = EmbeddedResource.ReadAsJArray("Microsoft.AspNet.WebHooks.Messages.NotificationCollectionMessage.json");
            InstagramNotification[] expected = new InstagramNotification[]
            {
                new InstagramNotification
                {
                    ChangedAspect = "media",
                    Object = "user",
                    UserId = "2174967354",
                    SubscriptionId = "22362655",
                    Data = new InstagramNotificationData
                    {
                        MediaId = "1213184719641169505_2174967354"
                    }
                },
                new InstagramNotification
                {
                    ChangedAspect = "media",
                    Object = "user",
                    UserId = "3174967354",
                    SubscriptionId = "22362655",
                    Data = new InstagramNotificationData
                    {
                        MediaId = "1213184719641169515_3174967354"
                    }
                },
            };

            // Act
            InstagramNotificationCollection actual = data.ToObject<InstagramNotificationCollection>();

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