Exemple #1
0
        public BlogSyncService(BlogSyncConfiguration config)
        {
            if (config == null)
            {
                throw new ArgumentNullException(nameof(config));
            }

            this.Config = config;

            this.blogSettings = new BlogSettingsHelper(config.BlogSettings);

            this.metaHelper = new BlogSyncServiceMetaHelper(config);
            this.postsHelper = new BlogSyncServicePostsHelper(config);
        }
        private static BlogSettingsHelper GetTestBlogSettingsHelper()
        {
            var settings = BlogSettingTestData.CreateCollection();

            var helper = new BlogSettingsHelper(settings);
            return helper;
        }