Exemplo n.º 1
0
 public ProjectApplication(IProjectRepository projectRepository, IProjectDomainService projectDomainService, IProjectCache projectCache, IOperateLogDomainService operateLogDomainService)
 {
     _projectRepository       = projectRepository;
     _projectDomainService    = projectDomainService;
     _operateLogDomainService = operateLogDomainService;
     _projectCache            = projectCache;
 }
Exemplo n.º 2
0
 public RuntimeLogDomainService(IWarningLogDomainService warningLogDomainService, IProjectCache projectCache, IProjectDomainService projectDomainService, IServicerCache servicerCache, IServicerDomainService servicerDomainService, IWarningLogRepository warningLogRepository, IEmailSendedRecordDomainService emailSendedRecordDomainService)
 {
     _projectCache                   = projectCache;
     _projectDomainService           = projectDomainService;
     _servicerCache                  = servicerCache;
     _servicerDomainService          = servicerDomainService;
     _warningLogDomainService        = warningLogDomainService;
     _warningLogRepository           = warningLogRepository;
     _emailSendedRecordDomainService = emailSendedRecordDomainService;
 }
        private void checkProjectProperties(IProjectCache projectCache)
        {
            IEnumerable <Project> fullProjectList = projectCache.GetProjects();
            Project selectedProject = fullProjectList
                                      .SingleOrDefault(project => project.Path_With_Namespace == _mergeRequestKey.ProjectKey.ProjectName);

            if (selectedProject.Merge_Method != "ff")
            {
                traceError(String.Format("Unsupported merge method {0} detected in project {1}",
                                         selectedProject.Merge_Method, selectedProject.Path_With_Namespace));
                string message = "Current version supports projects with Fast Forward merge method only";
                MessageBox.Show(message, "Unsupported project merge method", MessageBoxButtons.OK, MessageBoxIcon.Error);
                Close();
            }
        }
Exemplo n.º 4
0
 public ProjectDomainService(IProjectCache projectCache, IProjectRepository projectRepository)
 {
     _projectCache      = projectCache;
     _projectRepository = projectRepository;
 }
 public SqlStatisticsDomainService(IProjectCache projectCache)
 {
     _projectCache = projectCache;
 }
Exemplo n.º 6
0
 public ProjectService(IProjectCache cache, IProjectRepository repository)
 {
     _cache      = cache;
     _repository = repository;
 }