예제 #1
0
 public GamesService(
     IRepository <GameDetails> gamesRepository,
     IRepository <GameRating> gamesRatingsRepository,
     IRepository <User> usersRepository,
     ISlienGamesData unitOfWork)
 {
     this.gamesRepository = gamesRepository;
     this.usersRepository = usersRepository;
     this.unitOfWork      = unitOfWork;
 }
예제 #2
0
 public CommentsService(
     IRepository <User> usersRepository,
     IRepository <Comment> commentsRepository,
     IRepository <GameDetails> gamesRepository,
     ISlienGamesData unitOfWork)
 {
     this.usersRepository    = usersRepository;
     this.commentsRepository = commentsRepository;
     this.gamesRepository    = gamesRepository;
     this.unitOfWork         = unitOfWork;
 }
예제 #3
0
        public ReviewsService(IRepository <Review> reviewsRepository, ISlienGamesData unitOfWork)
        {
            if (reviewsRepository == null)
            {
                throw new ArgumentNullException();
            }

            if (unitOfWork == null)
            {
                throw new ArgumentNullException();
            }

            this.reviewsRepository = reviewsRepository;
            this.uow = unitOfWork;
        }
예제 #4
0
 public UserService(IRepository <User> usersRepository, ISlienGamesData unitOfWork)
 {
     this.usersRepository = usersRepository;
     this.uow             = unitOfWork;
 }