public UserRepository(RedditDbContext context) { _context = context ?? throw new ArgumentNullException(nameof(context)); }
public PostService(RedditDbContext db) { this.db = db; }
public PostRepository(RedditDbContext dbContext) { this.dbContext = dbContext; }
public RedditService(RedditDbContext context) { redditContext = context; postRepo = new PostRepository(redditContext); userRepo = new UserRepository(redditContext); }
public PostServices(RedditDbContext dbContext) { this.dbContext = dbContext; }
public RedditController(IUserServices userServices, IPostService postService, RedditDbContext dbContext) { this.userServices = userServices; this.postService = postService; this.dbContext = dbContext; }
public UserServices(RedditDbContext dbContext) { this.dbContext = dbContext; }