public FeedRepo(UlearnDb db) { this.db = db; notificationsRepo = new NotificationsRepo(db); visitsRepo = new VisitsRepo(db); }
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)); }