Ejemplo n.º 1
0
 public void Init()
 {
     _repository = new MissionDraftRepository();
     _personQualityRepository = new PersonQualityRepository();
     _service = new MissionDraftService(_repository);
     _personQualityService = new PersonQualityService(_personQualityRepository);
     _controller           = new MissionDraftController(_service, _personQualityService);
 }
Ejemplo n.º 2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="MissionController" /> class.
 /// </summary>
 /// <param name="personQualityService">The person quality service.</param>
 /// <param name="missionService">The mission service.</param>
 /// <param name="commonPlacesService">The common places service.</param>
 public MissionController(
     PersonQualityService personQualityService,
     MissionService missionService,
     CommonPlacesService commonPlacesService)
 {
     _personQualityService = personQualityService;
     _missionService       = missionService;
     _commonPlacesService  = commonPlacesService;
 }
Ejemplo n.º 3
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="MissionDraftController" /> class.
 /// </summary>
 /// <param name="missionDraftService">The mission draft service.</param>
 /// <param name="personQualityService">The person quality service.</param>
 /// <param name="missionService">The mission service.</param>
 public MissionDraftController(
     MissionDraftService missionDraftService,
     PersonQualityService personQualityService,
     MissionService missionService)
     : base(missionDraftService, personQualityService)
 {
     _missionDraftService  = missionDraftService;
     _personQualityService = personQualityService;
     _missionService       = missionService;
 }
Ejemplo n.º 4
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);
 }
Ejemplo n.º 5
0
 public void Init()
 {
     _repository = new QuestionRepository();
     _personQualityRepository = new PersonQualityRepository();
     _userRepository          = new UserRepository();
     _missionRepository       = new MissionRepository();
     _missionSetRepository    = new MissionSetRepository();
     _service = new QuestionService(
         _repository,
         _userRepository,
         _missionRepository,
         new AssignmentService(_missionSetRepository, _missionRepository));
     _personQualityService = new PersonQualityService(_personQualityRepository);
     _controller           = new QuestionController(_service, _personQualityService);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MissionSetController" /> class.
 /// </summary>
 /// <param name="missionSetService">The mission set service.</param>
 /// <param name="missionService">The mission service.</param>
 /// <param name="personQualityService">The person quality service.</param>
 public MissionSetController(MissionSetService missionSetService, MissionService missionService, PersonQualityService personQualityService)
 {
     _missionSetService    = missionSetService;
     _missionService       = missionService;
     _personQualityService = personQualityService;
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PersonQualityController" /> class.
 /// </summary>
 /// <param name="personQualityService">The person quality service.</param>
 public PersonQualityController(PersonQualityService personQualityService)
     : base(personQualityService)
 {
     _personQualityService = personQualityService;
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="QuestionController" /> class.
 /// </summary>
 /// <param name="questionService">The question service.</param>
 /// <param name="personQualityService">The person quality service.</param>
 public QuestionController(QuestionService questionService, PersonQualityService personQualityService)
 {
     _questionService      = questionService;
     _personQualityService = personQualityService;
 }
 public void Init()
 {
     _repository = new PersonQualityRepository();
     _service    = new PersonQualityService(_repository);
     _controller = new PersonQualityController(_service);
 }