private static Page <Hub> InvokeReadJsonMethodOnConverter(HubJsonConverter converter, string jsonToUse = json)
        {
            var actual = converter.ReadJson(new JsonTextReader(new StringReader(jsonToUse)), typeof(Page <Hub>), "",
                                            new Mock <JsonSerializer>().Object) as Page <Hub>;

            return(actual);
        }
        public void If_The_Header_Image_Is_Null_Then_Header_Image_Is_Not_Set(HubJsonConverter converter)
        {
            var actual = InvokeReadJsonMethodOnConverter(converter, jsonNoHeaderImage);

            actual.Content.HeaderImage.Description.Should().BeNullOrWhiteSpace();
            actual.Content.HeaderImage.Url.Should().BeNullOrWhiteSpace();
            actual.Content.HeaderImage.Title.Should().BeNullOrWhiteSpace();
        }
        public void The_Page_Model_Is_Populated_With_Page_Information(HubJsonConverter converter)
        {
            var actual = InvokeReadJsonMethodOnConverter(converter);

            actual.Slug.Should().NotBeNullOrWhiteSpace();
            actual.Title.Should().NotBeNullOrWhiteSpace();
            actual.MetaContent.MetaDescription.Should().NotBeNullOrWhiteSpace();
            actual.MetaContent.PageTitle.Should().NotBeNullOrWhiteSpace();
        }
        public void The_Cards_Are_Set(HubJsonConverter converter)
        {
            var actual = InvokeReadJsonMethodOnConverter(converter);

            actual.Content.Cards.Should().NotBeNullOrEmpty();
        }
        public void The_Header_Image_Is_Set(HubJsonConverter converter)
        {
            var actual = InvokeReadJsonMethodOnConverter(converter);

            actual.Content.HeaderImage.Should().NotBeNull();
        }
        public void The_Page_Model_Is_Returned(HubJsonConverter converter)
        {
            var actual = InvokeReadJsonMethodOnConverter(converter);

            actual.Should().NotBeNull();
        }