Ejemplo n.º 1
0
 public RankService(IDatabaseCollections dbCollections,
                    IUserRankRepository userRankRepository,
                    IUserRanksRepository userRanksRepository,
                    IMoneyRepository moneyRepository,
                    IStatsRepository statsRepository) : base(dbCollections)
 {
     _ranks = dbCollections.ranks;
     _userRankRepository  = userRankRepository;
     _userRanksRepository = userRanksRepository;
     _moneyRepository     = moneyRepository;
     _statsRepository     = statsRepository;
 }
Ejemplo n.º 2
0
 public UnitOfWork(ChallengifierEntities1 dbContext,
                   IMilestoneRepository milestoneRepository,
                   IChallengeRepository challengeRepository,
                   IObjectiveRepository objectiveRepository,
                   IPictureRepository pictureRepository,
                   IPlanningStepRepository planningStepRepository,
                   IUserRankRepository userRankRepository,
                   IUserRatingRepository userRatingRepository,
                   IUserRepository userRepository)
 {
     this.dbContext              = dbContext;
     this.MilestoneRepository    = milestoneRepository;
     this.ChallengeRepository    = challengeRepository;
     this.ObjectiveRepository    = objectiveRepository;
     this.PictureRepository      = pictureRepository;
     this.PlanningStepRepository = planningStepRepository;
     this.UserRankRepository     = userRankRepository;
     this.UserRatingRepository   = userRatingRepository;
     this.UserRepository         = userRepository;
     transaction = dbContext.Database.BeginTransaction();
 }
Ejemplo n.º 3
0
 //回复:能
 /// <summary>
 /// 带参数的构造函数(测试使用)
 /// </summary>
 /// <param name="userRankRepository">IUserRankRepository</param>
 public UserRankService(IUserRankRepository userRankRepository)
 {
     this.userRankRepository = userRankRepository;
 }
Ejemplo n.º 4
0
 //回复:能
 /// <summary>
 /// 带参数的构造函数(测试使用)
 /// </summary>
 /// <param name="userRankRepository">IUserRankRepository</param>
 public UserRankService(IUserRankRepository userRankRepository)
 {
     this.userRankRepository = userRankRepository;
 }