public async Task ValidateSyncComponentTests(bool expected, bool overrideSitemapConfigMatches, bool changeFrequencyMatches, bool priorityMatches, bool exludeMatches)
        {
            A.CallTo(() => GraphValidationHelper.BoolContentPropertyMatchesNodeProperty(
                         "OverrideSitemapConfig",
                         A <JObject> ._,
                         "sitemap_OverrideSitemapConfig",
                         SourceNode)).Returns((overrideSitemapConfigMatches, ""));

            A.CallTo(() => GraphValidationHelper.EnumContentPropertyMatchesNodeProperty <ChangeFrequency>(
                         "ChangeFrequency",
                         A <JObject> ._,
                         "sitemap_ChangeFrequency",
                         SourceNode)).Returns((changeFrequencyMatches, ""));

            A.CallTo(() => GraphValidationHelper.LongContentPropertyMatchesNodeProperty(
                         "Priority",
                         A <JObject> ._,
                         "sitemap_Priority",
                         SourceNode)).Returns((priorityMatches, ""));

            A.CallTo(() => GraphValidationHelper.BoolContentPropertyMatchesNodeProperty(
                         "Exclude",
                         A <JObject> ._,
                         "sitemap_Exclude",
                         SourceNode)).Returns((exludeMatches, ""));

            (bool validated, _) = await CallValidateSyncComponent();

            Assert.Equal(expected, validated);
        }
        public async Task ValidateSyncComponentTests(bool expected, bool stringContentPropertyMatchesNodePropertyReturns)
        {
            A.CallTo(() => GraphValidationHelper.StringContentPropertyMatchesNodeProperty(
                         ContentKey,
                         A <JObject> ._,
                         FieldNameTransformed,
                         SourceNode)).Returns((stringContentPropertyMatchesNodePropertyReturns, ""));

            (bool validated, _) = await CallValidateSyncComponent();

            Assert.Equal(expected, validated);
        }
        public async Task ValidateSyncComponentTests(bool expected, bool stringContentPropertyMatchesNodePropertyReturns)
        {
            A.CallTo(() => GraphValidationHelper.ContentPropertyMatchesNodeProperty(
                         ContentIdPropertyName,
                         A <JObject> ._,
                         NodeTitlePropertyName,
                         SourceNode,
                         A <Func <JValue, object, bool> > ._)).Returns((stringContentPropertyMatchesNodePropertyReturns, ""));

            (bool validated, _) = await CallValidateSyncComponent();

            Assert.Equal(expected, validated);
        }
        public async Task ValidateSyncComponentTests(bool expected, bool stringContentPropertyMatchesNodePropertyReturns)
        {
            A.CallTo(() => GraphValidationHelper.DateTimeContentPropertyMatchesNodeProperty(
                         ContentKey,
                         A <JObject> ._,
                         NodeTitlePropertyName,
                         SourceNode)).Returns((stringContentPropertyMatchesNodePropertyReturns, ""));
            A.CallTo(() => SyncNameProvider.PropertyName("ScheduledPublishUtc")).Returns("publishlater_ScheduledPublishUtc");

            (bool validated, _) = await CallValidateSyncComponent();

            Assert.Equal(expected, validated);
        }