/// <summary> /// Constructor used to inject the requirement repository. /// </summary> public RequirementService(IRequirementsRepository _requirementRepository, ITaskRepository _taskRepository) { this.requirementRepository = _requirementRepository; this.taskRepository = _taskRepository; }
public RequirementsService(IRequirementsRepository requirementsRepository, IMapper mapper) { _requirementsRepository = requirementsRepository; _mapper = mapper; }
/// <summary> /// Constructor used to inject dependencies. /// </summary> /// <param name="_requirementRepository">Requirement repository dependency.</param> /// <param name="_projectRepository">Project repository dependency.</param> public StatisticService(IRequirementsRepository _requirementRepository, IProjectRepository _projectRepository) { this.requirementRepository = _requirementRepository; this.projectRepository = _projectRepository; }
/// <summary> /// Constructor used to inject projects repository, Resources, and context. /// </summary> /// <param name="_exampleRepository">Example repository to be injected.</param> public ProjectService(IProjectRepository _projectsRepository, IRequirementsRepository _requirementRepository) { this.projectsRepository = _projectsRepository; this.requirementRepository = _requirementRepository; }