예제 #1
0
파일: FeedRepo.cs 프로젝트: atnartur/Ulearn
 public FeedRepo(UlearnDb db)
 {
     this.db           = db;
     notificationsRepo = new NotificationsRepo(db);
     visitsRepo        = new VisitsRepo(db);
 }
예제 #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));
 }