Esempio n. 1
0
 public GamesService(
     IRepository <GameDetails> gamesRepository,
     IRepository <GameRating> gamesRatingsRepository,
     IRepository <User> usersRepository,
     ISlienGamesData unitOfWork)
 {
     this.gamesRepository = gamesRepository;
     this.usersRepository = usersRepository;
     this.unitOfWork      = unitOfWork;
 }
Esempio n. 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;
 }
Esempio n. 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;
        }
Esempio n. 4
0
 public UserService(IRepository <User> usersRepository, ISlienGamesData unitOfWork)
 {
     this.usersRepository = usersRepository;
     this.uow             = unitOfWork;
 }