public Bootstrapper(IHostingEnvironment env, VamBooruDbContext dbContext, IUsersRepository usersRepository, IPostsRepository postsRepository, IPostCommentsRepository commentsRepository, IVotesRepository votesRepository, IStorage storage) { _env = env ?? throw new ArgumentNullException(nameof(env)); _dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); _usersRepository = usersRepository ?? throw new ArgumentNullException(nameof(usersRepository)); _postsRepository = postsRepository ?? throw new ArgumentNullException(nameof(postsRepository)); _storage = storage ?? throw new ArgumentNullException(nameof(storage)); _commentsRepository = commentsRepository ?? throw new ArgumentNullException(nameof(commentsRepository)); _votesRepository = votesRepository ?? throw new ArgumentNullException(nameof(votesRepository)); }
public PostCommentsController(IPostCommentsRepository commentsRepository) { _commentsRepository = commentsRepository ?? throw new ArgumentNullException(nameof(commentsRepository)); }
public PostCommentsController(IPostCommentsRepository _postRepository) { this._postRepository = _postRepository; }