public void Init() { _repository = new MissionDraftRepository(); _personQualityRepository = new PersonQualityRepository(); _service = new MissionDraftService(_repository); _personQualityService = new PersonQualityService(_personQualityRepository); _controller = new MissionDraftController(_service, _personQualityService); }
public void Init() { _repository = new MissionDraftRepository(); _personQualityRepository = new PersonQualityRepository(); _userRepository = new UserRepository(); _ratingRepository = new RatingRepository(); _missionRepository = new MissionRepository(); _service = new MissionDraftService(_repository); _personQualityService = new PersonQualityService(_personQualityRepository); _ratingService = new RatingService(_userRepository, _ratingRepository, true); _missionService = new MissionService(_missionRepository, _userRepository, new MissionSetRepository(), new MissionRequestRepository(), new HintRequestRepository(), _ratingService, new CommonPlaceRepository()); _controller = new MissionDraftController(_service, _personQualityService, _missionService); }
/// <summary> /// Initializes a new instance of the <see cref="MissionDraftService"/> class. /// </summary> /// <param name="missionDraftRepository"> /// The mission draft repository. /// </param> public MissionDraftService(IMissionDraftRepository missionDraftRepository) { _missionDraftRepository = missionDraftRepository; }