示例#1
0
 public void Init()
 {
     _repository = new MissionRepository();
     _personQualityRepository = new PersonQualityRepository();
     _userRepository          = new UserRepository();
     _ratingRepository        = new RatingRepository();
     _commonPlacesRepository  = new CommonPlacesRepository();
     _commonPlacesService     = new CommonPlacesService(_commonPlacesRepository);
     _ratingService           = new RatingService(_userRepository, _ratingRepository, true);
     _service = new MissionService(_repository, _userRepository, new MissionSetRepository(), new MissionRequestRepository(), new HintRequestRepository(), _ratingService, _commonPlacesRepository);
     _personQualityService = new PersonQualityService(_personQualityRepository);
     _controller           = new MissionController(_personQualityService, _service, _commonPlacesService);
 }
示例#2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="MissionService" /> class.
 /// </summary>
 /// <param name="missionRepository">The mission repository.</param>
 /// <param name="userRepository">The user repository.</param>
 /// <param name="missionSetRepository">The mission set repository.</param>
 /// <param name="missionRequestRepository">The mission request repository.</param>
 /// <param name="hintRequestRepository">The hint request repository.</param>
 /// <param name="ratingService">The rating service.</param>
 /// <param name="commonPlacesRepository">The common places repository.</param>
 public MissionService(
     IMissionRepository missionRepository,
     IUserRepository userRepository,
     IMissionSetRepository missionSetRepository,
     IMissionRequestRepository missionRequestRepository,
     IHintRequestRepository hintRequestRepository,
     RatingService ratingService,
     ICommonPlacesRepository commonPlacesRepository)
 {
     _missionRepository        = missionRepository;
     _userRepository           = userRepository;
     _ratingService            = ratingService;
     _missionSetRepository     = missionSetRepository;
     _missionRequestRepository = missionRequestRepository;
     _hintRequestRepository    = hintRequestRepository;
     _commonPlacesRepository   = commonPlacesRepository;
 }
示例#3
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="MissionRequestService" /> class.
 /// </summary>
 /// <param name="missionRequestRepository">The mission request repository.</param>
 /// <param name="missionRepository">The mission repository.</param>
 /// <param name="userRepository">The user repository.</param>
 /// <param name="commonPlacesRepository">The _common places repository.</param>
 /// <param name="ratingService">The rating service.</param>
 /// <param name="notificationService">The notification service.</param>
 /// <param name="appCountersService">The application counters service.</param>
 public MissionRequestService(
     IMissionRequestRepository missionRequestRepository,
     IMissionRepository missionRepository,
     IUserRepository userRepository,
     ICommonPlacesRepository commonPlacesRepository,
     RatingService ratingService,
     NotificationService notificationService,
     AppCountersService appCountersService)
 {
     _missionRequestRepository = missionRequestRepository;
     _missionRepository        = missionRepository;
     _userRepository           = userRepository;
     _ratingService            = ratingService;
     _notificationService      = notificationService;
     _appCountersService       = appCountersService;
     _commonPlacesRepository   = commonPlacesRepository;
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="CommonPlacesService" /> class.
 /// </summary>
 /// <param name="commonPlacesRepository">The common places repository.</param>
 public CommonPlacesService(ICommonPlacesRepository commonPlacesRepository)
 {
     _commonPlacesRepository = commonPlacesRepository;
 }