Exemple #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);
 }