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