public void Ctor_BlogSourceNullArgument_ThrowsArgumentNullException()
 {
     // Arrange
     var dataStorage = new FakeDataStorage();
     
     // Act & Assert
     Assert.Throws<ArgumentNullException>(() => GetTestBlogSyncConfiguration(null, dataStorage));
 }
        public static BlogSyncService CreateWithData(
            IEnumerable<BlogPost> blogSourcePosts = null,
            IEnumerable<BlogMeta> blogSourceMetas = null,
            IEnumerable<BlogPost> dataStoragePosts = null,
            IEnumerable<BlogSetting> blogSettings = null)
        {
            var blogSource = new FakeBlogSource(blogSourcePosts, blogSourceMetas);
            var dataStorage = new FakeDataStorage(dataStoragePosts);

            var service = Create(blogSource, dataStorage, blogSettings);
            return service;
        }
        public void SlugProvider_CtorNullArgument_ReturnsDefaultType()
        {
            // Arrange
            var blogSource = new FakeBlogSource();
            var dataStorage = new FakeDataStorage();

            // Act
            var config = GetTestBlogSyncConfiguration(blogSource, dataStorage);

            // Assert
            Assert.NotNull(config.SlugProvider);
            Assert.IsType<BlavenBlogPostUrlSlugProvider>(config.SlugProvider);
        }