Ejemplo n.º 1
0
        public ProjectModel Get(int projectId, int userId)
        {
            IProject project = _projectFactory.Get(projectId);

            if (project == null)
            {
                return(null);
            }

            ProjectModel result = new ProjectModel
            {
                Id            = project.Id,
                Code          = project.Code,
                YouTrackQuery = project.YouTrackQuery,
                YouTrackUrl   = project.YouTrackUrl
            };

            return(result);
        }
Ejemplo n.º 2
0
        public TeamMember(ProjectUser projectUser,
                          IIssueEstimationRepository issueEstimationRepository,
                          IProjectFactory projectFactory,
                          IUserFactory userFactory)
        {
            _projectUser = projectUser;

            _issueEstimationRepository = issueEstimationRepository;

            User    = userFactory.Get(projectUser.User);
            Project = projectFactory.Get(projectUser.Project);
        }