예제 #1
0
 public AdminService(StorageAccessService storageAccessService, IContestResultRepository contestResultRepository, IAdminRepository adminRepository,
                     IContestRepository contestRepository, INotificationService notificationService)
 {
     StorageAccessService    = storageAccessService ?? throw new ArgumentNullException(nameof(storageAccessService));
     ContestResultRepository = contestResultRepository ?? throw new ArgumentNullException(nameof(contestResultRepository));
     AdminRepository         = adminRepository ?? throw new ArgumentNullException(nameof(adminRepository));
     ContestRepository       = contestRepository ?? throw new ArgumentNullException(nameof(contestRepository));
     NotificationService     = notificationService ?? throw new ArgumentNullException(nameof(notificationService));
 }
예제 #2
0
 public ResultController(IContestResultRepository contestResultRepository)
 {
     ContestResultRepository = contestResultRepository ?? throw new ArgumentNullException(nameof(contestResultRepository));
 }
 public ContestResultService(IContestResultRepository contestRepository)
 {
     _contestResultRepository = contestRepository;
 }