示例#1
0
 public UpdateProjectTypeHandle(
     IUserRepository userRepository,
     IProjectTypeRepository projectTypeRepository)
 {
     _userRepository        = userRepository;
     _projectTypeRepository = projectTypeRepository;
 }
示例#2
0
 public ProjectController(UserService userService, Orchestrator orchestrator, IProjectRepository projectsRepository, IProjectTypeRepository projectTypesRepository)
 {
     this.userService            = userService ?? throw new ArgumentNullException(nameof(userService));
     this.orchestrator           = orchestrator ?? throw new ArgumentNullException(nameof(orchestrator));
     this.projectsRepository     = projectsRepository ?? throw new ArgumentNullException(nameof(projectsRepository));
     this.projectTypesRepository = projectTypesRepository ?? throw new ArgumentNullException(nameof(projectTypesRepository));
 }
示例#3
0
 //, UserBaseRepository userStore)
 public ProjectController(IProjectService projectService, IUserService userService, IProjectTypeRepository projectTypeService)
 {
     _projectService = projectService;
     _userService = userService;
     _projectTypeService = projectTypeService;
     _logger = LogManager.Instance;
 }
 public ProjectService(IProjectRepository ProjectRepository, IProjectTypeRepository projectTypeRepository, IUsersRepository usersRepository, IProductRepository productRepository, IUnitOfWork uow)
 {
     this._projectRepository     = ProjectRepository;
     this._projectTypeRepository = projectTypeRepository;
     this._usersRepository       = usersRepository;
     this._productRepository     = productRepository;
     this._uow = uow;
 }
示例#5
0
 public DeleteProjectHandle(
     IProjectRepository projectRepository,
     IUserRepository userRepository,
     IProjectTypeRepository projectTypeRepository)
 {
     _projectRepository     = projectRepository;
     _userRepository        = userRepository;
     _projectTypeRepository = projectTypeRepository;
 }
示例#6
0
        public ProjectTests()
        {
            IUnitOfWork uow = new NHUnitOfWork();

            this._projectRepository           = new ProjectRepository(uow);
            this._projectAttendanceRepository = new ProjectAttendanceRepository(uow);
            this._projectMaterialRepository   = new ProjectMaterialRepository(uow);
            this._projectProductRepository    = new ProjectProductRepository(uow);
            this._projectTypeRepository       = new ProjectTypeRepository(uow);
        }
示例#7
0
 public ProjectServices(IProjectRepository projectRepository,
     IProjectTypeRepository projectTypeRepository,
     IProjectStatusRepository projectStatusRepository,
     IUnitOfWork unitOfWork,
     ICompanyRepository companyRepository)
 {
     _projectRepository = projectRepository;
     _projectTypeRepository = projectTypeRepository;
     _projectStatusRepository = projectStatusRepository;
     _unitOfWork = unitOfWork;
     _companyRepository = companyRepository;
 }
示例#8
0
 public CategoryService(ILoggerServices loggerServices, IDbContextScopeFactory dbContextScopeFactory, IMapper mapper, ITaskItemCategoryRepository taskItemCategoryRepository, IUserServices userServices, IProjectCategoryRepository projectCategoryRepository, ITaskItemStatusRepository taskItemStatusRepository, ITaskItemPriorityRepository taskItemPriorityRepository, INatureTaskRepository natureTaskRepository, IProjectPriorityRepository projectPriorityRepository, IProjectTypeRepository projectTypeRepository, ISettingsService settingsService, ITaskItemRepository taskItemRepository, IProjectStatusRepository projectStatusRepository)
 {
     _loggerServices             = loggerServices;
     _dbContextScopeFactory      = dbContextScopeFactory;
     _projectCategoryRepository  = projectCategoryRepository;
     _taskItemCategoryRepository = taskItemCategoryRepository;
     _taskItemStatusRepository   = taskItemStatusRepository;
     _taskItemPriorityRepository = taskItemPriorityRepository;
     _natureTaskRepository       = natureTaskRepository;
     _projectPriorityRepository  = projectPriorityRepository;
     _projectTypeRepository      = projectTypeRepository;
     _mapper                  = mapper;
     _userServices            = userServices;
     _settingsService         = settingsService;
     _taskItemRepository      = taskItemRepository;
     _projectStatusRepository = projectStatusRepository;
 }
示例#9
0
        public ProjectTests()
        {
            IUnitOfWork uow = new NHUnitOfWork();

            this._projectAttendanceRepository = new ProjectAttendanceRepository(uow);
            this._projectAttendanceService    = new ProjectAttendanceService(this._projectAttendanceRepository, uow);

            this._projectMaterialRepository = new ProjectMaterialRepository(uow);
            this._projectMaterialService    = new ProjectMaterialService(this._projectMaterialRepository, uow);

            this._projectProductRepository = new ProjectProductRepository(uow);
            this._projectProductService    = new ProjectProductService(this._projectProductRepository, uow);

            this._projectTypeRepository = new ProjectTypeRepository(uow);
            this._projectTypeService    = new ProjectTypeService(this._projectTypeRepository, uow);

            this._projectRepository = new ProjectRepository(uow);
            this._projectService    = new ProjectService(this._projectRepository, this._projectTypeRepository, null, null, uow);
        }
示例#10
0
        public ProjectService(IProjectRepository projectRepository,
                              IParticipantRepository participantRepository,
                              IProjectTypeRepository projectTypeRepository,
                              IClientRepository clientRepository,
                              IStatusRepository statusRepository,
                              IUserRepository userRepository,
                              IRootTypesService rootTypesService,
                              ILogger <ProjectService> logger)
        {
            _Logger = logger;

            _projectRepository     = projectRepository;
            _participantRepository = participantRepository;
            _projectTypeRepository = projectTypeRepository;
            _clientRepository      = clientRepository;
            _statusRepository      = statusRepository;
            _userRepository        = userRepository;
            _rootTypesService      = rootTypesService;
        }
示例#11
0
 public ProjectTypeService(IProjectTypeRepository projectRepository, IUnitOfWork unitOfWork)
 {
     this.unitOfWork = unitOfWork;
     this.projectRepository = projectRepository;
 }
示例#12
0
 public ProjectController(UserService userService, Orchestrator orchestrator, IProjectRepository projectRepository, IProjectTypeRepository projectTypeRepository)
     : base(userService, orchestrator, projectRepository)
 {
     this.projectTypeRepository = projectTypeRepository ?? throw new ArgumentNullException(nameof(projectTypeRepository));
 }
 public ProjectTypesController(Orchestrator orchestrator, IProviderRepository providersRepository, IProjectTypeRepository projectTypesRepository)
 {
     this.orchestrator           = orchestrator ?? throw new ArgumentNullException(nameof(orchestrator));
     this.providersRepository    = providersRepository ?? throw new ArgumentNullException(nameof(providersRepository));
     this.projectTypesRepository = projectTypesRepository ?? throw new ArgumentNullException(nameof(projectTypesRepository));
 }
示例#14
0
 public ProjectTypeQueryService(IProjectTypeRepository projectTypeRepository)
 {
     _projectTypeRepository = projectTypeRepository;
 }
 public ProjectTypeTrigger(IProjectTypeRepository projectTypesRepository)
 {
     this.projectTypesRepository = projectTypesRepository ?? throw new ArgumentNullException(nameof(projectTypesRepository));
 }
示例#16
0
 public CreateProjectTypeHandle(IProjectTypeRepository projectTypeRepository, IUserRepository userRepository)
 {
     _projectTypeRepository = projectTypeRepository;
     _userRepository        = userRepository;
 }
 public ProjectTypeService(IProjectTypeRepository ProjectTypeRepository, IUnitOfWork uow)
 {
     this._projectTypeRepository = ProjectTypeRepository;
     this._uow = uow;
 }
示例#18
0
 public OrchestratorProjectTypeCommandHandler(IProjectTypeRepository projectTypeRepository)
 {
     this.projectTypeRepository = projectTypeRepository ?? throw new ArgumentNullException(nameof(projectTypeRepository));
 }
示例#19
0
 public TmcMainService(IProjectRepository projectRepository, IProjectTypeRepository projectTypeRepository)
 {
     _projectRepository     = projectRepository;
     _projectTypeRepository = projectTypeRepository;
 }
 public ProjectSubscriptionSelectActivity(IProjectTypeRepository projectTypeRepository, IAzureResourceService azureResourceService)
 {
     this.projectTypeRepository = projectTypeRepository ?? throw new ArgumentNullException(nameof(projectTypeRepository));
     this.azureResourceService  = azureResourceService ?? throw new ArgumentNullException(nameof(azureResourceService));
 }