private static BlogSyncConfiguration GetTestBlogSyncConfiguration( IBlogSource blogSource = null, IDataStorage dataStorage = null) { var config = new BlogSyncConfiguration(blogSource, dataStorage, null, null, null, null); return config; }
private static BlogSyncService GetBlogSyncService(IDocumentStore documentStore) { if (documentStore == null) { throw new ArgumentNullException(nameof(documentStore)); } var blogSource = AppSettingsFactory.BuildBlogSource((username, password) => new BloggerBlogSource(password)); var dataStorage = new RavenDbDataStorage(documentStore); var syncConfig = new BlogSyncConfiguration(blogSource, dataStorage, blogSettings: BlogSettingsLazy.Value); syncConfig.TransformersProvider.Transformers.Clear(); var blogSync = new BlogSyncService(syncConfig); return(blogSync); }