Exemplo n.º 1
0
 public FeedRepo(UlearnDb db)
 {
     this.db           = db;
     notificationsRepo = new NotificationsRepo(db);
     visitsRepo        = new VisitsRepo(db);
 }
Exemplo n.º 2
0
 public FeedRepo(UlearnDb db, NotificationsRepo notificationsRepo, VisitsRepo visitsRepo)
 {
     this.db = db ?? throw new ArgumentNullException(nameof(db));
     this.notificationsRepo = notificationsRepo ?? throw new ArgumentNullException(nameof(notificationsRepo));
     this.visitsRepo        = visitsRepo ?? throw new ArgumentNullException(nameof(visitsRepo));
 }