Exemplo n.º 1
0
 public UserRepository(RedditDbContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }
Exemplo n.º 2
0
 public PostService(RedditDbContext db)
 {
     this.db = db;
 }
Exemplo n.º 3
0
 public PostRepository(RedditDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
Exemplo n.º 4
0
 public RedditService(RedditDbContext context)
 {
     redditContext = context;
     postRepo      = new PostRepository(redditContext);
     userRepo      = new UserRepository(redditContext);
 }
Exemplo n.º 5
0
 public PostServices(RedditDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
Exemplo n.º 6
0
 public RedditController(IUserServices userServices, IPostService postService, RedditDbContext dbContext)
 {
     this.userServices = userServices;
     this.postService  = postService;
     this.dbContext    = dbContext;
 }
Exemplo n.º 7
0
 public UserServices(RedditDbContext dbContext)
 {
     this.dbContext = dbContext;
 }