public FxTradeTypeCommandsHandler( ILogger <FxTradeTypeCommandsHandler> logger, IIdentityService identityService, IUnitOfWork unitOfWork, IMapper mapper, IFxTradeTypeRepository fxTradeTypeConfigurationRepository) { _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)); _fxTradeTypeRepository = fxTradeTypeConfigurationRepository ?? throw new ArgumentNullException(nameof(fxTradeTypeConfigurationRepository)); }
public FxTradeTypesController(IUnitOfWork unitOfWork, IFxTradeTypeRepository fxTradeTypeRepository, IMediator mediator) { _unitOfWork = unitOfWork; _fxTradeTypeRepository = fxTradeTypeRepository; _mediator = mediator; }