public ArbitrationsController(IUnitOfWork unitOfWork, IArbitrationRepository arbitrationRepository, IRedisConnectionFactory cache, IMediator mediator) { _unitOfWork = unitOfWork; _arbitrationRepository = arbitrationRepository; _cache = cache; _mediator = mediator; }
public DeleteArbitrationsCommandHandler( ILogger <DeleteArbitrationsCommandHandler> logger, IIdentityService identityService, IUnitOfWork unitOfWork, IMapper mapper, IArbitrationRepository commodityConfigurationRepository) { _unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _identityService = identityService ?? throw new ArgumentNullException(nameof(identityService)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); _arbitrationRepository = commodityConfigurationRepository ?? throw new ArgumentNullException(nameof(commodityConfigurationRepository)); }