public DeleteJobTaskUseCase(IJobTaskRepository taskRepository, IJobOwnerShipValidator jobOwnerShipValidator,
                             IApplicationErrorFactory applicationErrorFactory)
 {
     this.taskRepository          = taskRepository;
     this.jobOwnerShipValidator   = jobOwnerShipValidator;
     this.applicationErrorFactory = applicationErrorFactory;
 }
Exemple #2
0
 public CreateJobTaskUseCase(IJobRepository jobRepository, IJobOwnerShipValidator jobOwnerShipValidator,
                             IApplicationErrorFactory applicationErrorFactory)
 {
     this.jobRepository           = jobRepository;
     this.jobOwnerShipValidator   = jobOwnerShipValidator;
     this.applicationErrorFactory = applicationErrorFactory;
 }
Exemple #3
0
 public GetTasksForJobUseCase(IJobRepository jobRepository, IApplicationErrorFactory applicationErrorFactory,
                              IMapper mapper)
 {
     this.jobRepository           = jobRepository;
     this.applicationErrorFactory = applicationErrorFactory;
     this.mapper = mapper;
 }
Exemple #4
0
 public UpdateJobTaskUseCase(IJobTaskRepository taskRepository, IJobOwnerShipValidator jobOwnerShipValidator,
                             IApplicationErrorFactory applicationErrorFactory, IMapper mapper)
 {
     this.taskRepository          = taskRepository;
     this.jobOwnerShipValidator   = jobOwnerShipValidator;
     this.applicationErrorFactory = applicationErrorFactory;
     this.mapper = mapper;
 }
Exemple #5
0
 public LoginUseCase(IUserRepository userRepository, IJwtFactory jwtFactory, ITokenFactory tokenFactory,
                     IApplicationErrorFactory errorFactory)
 {
     this.userRepository = userRepository;
     this.jwtFactory     = jwtFactory;
     this.tokenFactory   = tokenFactory;
     this.errorFactory   = errorFactory;
 }
 public FinishJobTaskUseCase(
     IJobTaskRepository jobTaskRepository,
     IApplicationErrorFactory applicationErrorFactory,
     ITaskAssignedValidator taskAssignedValidator)
 {
     this.jobTaskRepository       = jobTaskRepository;
     this.applicationErrorFactory = applicationErrorFactory;
     this.taskAssignedValidator   = taskAssignedValidator;
 }
 public AppExceptionFilterAttribute([NotNull] IAttributesReader attributesReader,
     [NotNull] IHttpActionContextReader actionContextReader,
     [NotNull] IApplicationErrorFactory applicationErrorFactory,
     [NotNull] IRazorResponseFactory razorResponseFactory)
 {
     if (attributesReader == null) throw new ArgumentNullException(nameof(attributesReader));
     if (actionContextReader == null) throw new ArgumentNullException(nameof(actionContextReader));
     if (applicationErrorFactory == null) throw new ArgumentNullException(nameof(applicationErrorFactory));
     if (razorResponseFactory == null) throw new ArgumentNullException(nameof(razorResponseFactory));
     _attributesReader = attributesReader;
     _actionContextReader = actionContextReader;
     _applicationErrorFactory = applicationErrorFactory;
     _razorResponseFactory = razorResponseFactory;
 }
Exemple #8
0
 public GetUserUseCase(IUserRepository userRepository, IMapper mapper, IApplicationErrorFactory errorFactory)
 {
     this.userRepository = userRepository;
     this.mapper         = mapper;
     this.errorFactory   = errorFactory;
 }