public BlogsController(IBlogRepository blogRepository, IPostRepository postRepository, IUserRepository userRepository, IUnitOfWork unitOfWork, IBlogService blogService, IWordPressBlogReader wordPressBlogReader) { _blogRepository = blogRepository; _postRepository = postRepository; _userRepository = userRepository; _unitOfWork = unitOfWork; _blogService = blogService; _wordPressBlogReader = wordPressBlogReader; }
//IWordPressBlogReader wordPressBlogReader, //ILogger logger) public BlogService( IBlogRepository blogRepository, IPostRepository postRepository, IUnitOfWork unitOfWork, IWordPressBlogReader wordPressBlogReader) { _blogRepository = blogRepository; _postRepository = postRepository; _unitOfWork = unitOfWork; _wordPressBlogReader = wordPressBlogReader; //_logger = logger; _logger = LogManager.GetCurrentClassLogger(); }
public BlogService( IBlogRepository blogRepository, IPostRepository postRepository, IUnitOfWork unitOfWork, IWordPressBlogReader wordPressBlogReader) //IWordPressBlogReader wordPressBlogReader, //ILogger logger) { _blogRepository = blogRepository; _postRepository = postRepository; _unitOfWork = unitOfWork; _wordPressBlogReader = wordPressBlogReader; //_logger = logger; _logger = LogManager.GetCurrentClassLogger(); }