public Service(string questionSource)
 {
     questionRepository  = new XmlQuestionRepository(questionSource);
     statisticRepository = new DbStatisticsRepository();
     userRepository      = new DbUserRatingRepository();
     SeedDataBase();
 }
Пример #2
0
 public DemoDataService(IUserRepository userRepository, ISettingsRepository settingsRepository,
                        IUserRatingRepository userRatingRepository)
 {
     _userRepository       = userRepository;
     _settingsRepository   = settingsRepository;
     _userRatingRepository = userRatingRepository;
 }
 public MovieInformationService(IMovieRepository movieRepository, IMovieGenreRepository movieGenreRepository, IUserRatingRepository userRatingRepository, IUserRepository userRepository)
 {
     _movieRepository      = movieRepository;
     _movieGenreRepository = movieGenreRepository;
     _userRatingRepository = userRatingRepository;
     _userRepository       = userRepository;
 }
 public HomeController(IAccMember298Repository accMember298Repository, IMenuRepository menuRepository, IUserRatingRepository userRatingRepository, IUnitOfWork unitOfWork)
 {
     _accMember298Repository = accMember298Repository;
     _menuRepository         = menuRepository;
     _userRatingRepository   = userRatingRepository;
     _unitOfWork             = unitOfWork;
 }
Пример #5
0
 public AMPSanPhamController(IMenuRepository menuRepository, HttpContextBase httpContext, IProductStockSyncRepository stockSyncRepository, IPromotionRepository promotionRepository, IUserRatingRepository userRatingRepository, IDanhSachTagRepository danhSachTagRepository, IThietLapRepository thietLapRepository)
 {
     _menuRepository        = menuRepository;
     _httpContext           = httpContext;
     _stockSyncRepository   = stockSyncRepository;
     _promotionRepository   = promotionRepository;
     _userRatingRepository  = userRatingRepository;
     _danhSachTagRepository = danhSachTagRepository;
     _ThietLapRepository    = thietLapRepository;
 }
Пример #6
0
 public UsersController(IUserRepository userRepository,
                        IUserRatingRepository userRatingRepository,
                        ITransformer <SignupUserRequest, User> signupTransformer,
                        ITransformer <UserRatingRequest, UserRating> userRatingTransformer,
                        IConfiguration configuration)
 {
     _userRepository        = userRepository;
     _userRatingRepository  = userRatingRepository;
     _signupTransformer     = signupTransformer;
     _configuration         = configuration;
     _userRatingTransformer = userRatingTransformer;
 }
Пример #7
0
 public OneToOneMatchMakerService(IUserRatingRepository userRatingRepository,
                                  IMatchRepository matchRepository,
                                  IMatchPairRepository matchPairRepository,
                                  ITransformer <MakeMatch, Match> matchTransformer,
                                  ITransformer <UserRating, MatchPair> matchPairTransformer,
                                  ILogger <OneToOneMatchMakerService> log)
 {
     _userRatingRepository = userRatingRepository;
     _matchRepository      = matchRepository;
     _matchPairRepository  = matchPairRepository;
     _matchTransformer     = matchTransformer;
     _matchPairTransformer = matchPairTransformer;
     _log = log;
 }
Пример #8
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();
 }
Пример #9
0
 public RatingsController(ITransformer <UserRatingRequest, UserRating> userRatingTransformer,
                          IUserRatingRepository userRatingRepository)
 {
     _userRatingTransformer = userRatingTransformer;
     _userRatingRepository  = userRatingRepository;
 }
Пример #10
0
 public UserRatingService(IUserRatingRepository userRatingRepository, IMapper mapper)
 {
     _userRatingRepository = userRatingRepository;
     _mapper = mapper;
 }