public UnitOfWork(TaskManagerContext context) { _context = context; _taskRepository = new TaskRepository(context); _taskStateRepository = new TaskStateRepository(context); _userRepository = new UserRepository(context); _userTaskRepository = new UserTaskRepository(context); }
public TaskBoardUnitOfWork(DbContextOptions <TaskBoardContext> options, UserManager <UserAccount> _userManager) { Database = new TaskBoardContext(options); userManager = _userManager; userProfileRepository = new UserProfileRepository(Database); workTaskRepository = new WorkTaskRepository(Database); taskStateRepository = new TaskStateRepository(Database); }
public FinishedTasksCorrectiveActionUseCase( ITaskRepository taskRepository, ITaskStateRepository taskStateRepository, ICorrectiveActionRepository correctiveActionRepository, IWorkflowCore workflowCore ) { _taskRepository = taskRepository; _taskStateRepository = taskStateRepository; _correctiveActionRepository = correctiveActionRepository; _workflowCore = workflowCore; }
public ExtendDueDateTaskUseCase( IMapper mapper, ICorrectiveActionRepository correctiveActionRepository, ICorrectiveActionStateRepository correctiveActionStateRepository, IHttpContextAccessor httpContextAccessor, ICorrectiveActionStatesHistoryRepository correctiveActionStatesHistoryRepository, IEmailSender emailSender, ITaskRepository taskRepository, ITaskStateRepository taskStateRepository, IUserRepository userRepository, IOptions <EmailSettings> emailSettings ) { _correctiveActionStateRepository = correctiveActionStateRepository; _correctiveActionRepository = correctiveActionRepository; _mapper = mapper; _httpContextAccessor = httpContextAccessor; _correctiveActionStatesHistoryRepository = correctiveActionStatesHistoryRepository; _emailSender = emailSender; _taskRepository = taskRepository; _taskStateRepository = taskStateRepository; _userRepository = userRepository; _emailSettings = emailSettings.Value; }
public CreateTaskUseCase(ITaskRepository taskRepository, ITaskStateRepository taskStateRepository) { this._taskRepository = taskRepository; this._taskStateRepository = taskStateRepository; }
public TaskStateService() { repositoryGlobal = new GS.TaskStateService(); }
public UpdateTaskStateUserCase(ITaskStateRepository taskStateRepository) { _taskStateRepository = taskStateRepository; }
public CreateTaskStateUseCase(ITaskStateRepository taskStateRepository) { _taskStateRepository = taskStateRepository; }
public GetOneTaskStateUseCase(ITaskStateRepository stateTaskRepository, IMapper mapper) { _stateTaskRepository = stateTaskRepository; _mapper = mapper; }
public TaskStateService(IUnitOfWork unitOfWork, ITaskStateRepository taskStateRepository) { _unitOfWork = unitOfWork; _taskStateRepository = taskStateRepository; }
public GetAllTaskStatesUseCase(ITaskStateRepository TaskStateRepository) { _TaskStateRepository = TaskStateRepository; }